What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Need help on creating a new condition.Asked by coigis on September 16, 2016 at 07:03 PM
For the field "Total demand in Amps", how do i include a condition that will check "Electric Service" if user picks "Other" and "Specify" without interfering other conditions that it already has?
If i use "Allow Other" for "Electric Service" buttons, there is also no way to include conditions based on value entered by user.
I apologize, but I am not understanding the logic of the condition you want to create. Do you want to input the value from "Electric Service" field into the "Total demand in Amps ((B+C)/240V))" field?
If "Total demand in Amps" is less than "Electric Service", the message "No electrical panel upgrade is required". If it's more, then it will show the message "Electrical panel upgrade is required".
Right now, "Electric Service" has 3 options, one of the options allow user to enter any value, but it's in a different field. That means the condition will have to examine both the option button value and the text field value. I tested and looks like it will cause conflict.
But if I turn on "Allow Other" for the radio buttons, I don't know how to grab the value entered by user and include it in the condition.
I have tested this and I can see when you turn on the option "Allow Other" in the radio button field, it is not possible to capture the value entered there, the way you currently have the field set up seems to be the correct and to handle the condition you will need to evaluate both fields, the radio button as well as the text field you have added and showing as custom value.
But to simplify the process I would suggest you to capture the value from both fields in a Form Calculation value and then add your condition only with one field.
Adding the widget:
Capture both fields in the widget:
Now set up calculation values, set the needed values to each option in the radio button and for the other field you should set 0 as calculation value:
This guide will provide you with more details about assigning calculation values: How-to-Assign-Calculation-Value
Then you can set the conditions based on one field only:
Please give it a try and do not forget to remove all the conditions that are affecting these fields currently, please remove the test conditions you have added so you will see the result of my suggestion.
Do let us know if you have any question, we will be glad to help you.
Thank you, Kevin. The solution works!