JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
Multiple conditional statementsAsked by CenterforSalesExcellence on October 21, 2014 at 10:49 PM
We are using multiple conditions in our forms. Says the user is in Action item #1 and then selects "Yes" to add another action item #2, then the action item #2 shows up, and so on. We only allow up to 5 action items. But then when the user selects "No" in Action Item #1, the Action Item #2 does not shows up, but the rest of the action item #3 and so on are still on the screen. Is it possible to remove hide them too? I have stripped down the form just to show this. Here is the link to the form - http://form.jotform.us/form/42938525090155. Any suggestions are welcome. Thanks in advance.
To confirm, the issue that you are experiencing with your conditions, is that whenever you select no on the first option, the second option does not display but the other options show up?
After reviewing your form, I am seeing that when, no is selected on the first option. None of the other options are showing up.
All other options work the same way, the item below is only displayed when yes is selected.
It appears that everything is working as desired.
Please inform us if you need additional assistance.
Yes, the issue is that if you select "no" on the first option, the second option does not display but the other options show up. The way to replicate this problem is to show all the options by selecting "Yes" and then select "No" on the first option. The second option does not display but the rest of the options still show up. Please see the screenshot below. Would it be possible for the other options do not display? Thanks.
Thank you for providing us with that additional information. I was able to replicate the issue that you are experiencing with your form.
To resolve the issue, it is best if you change your conditions to hide the fields you don't want to be shown versus, showing. I cloned your form and made the changes to the conditions.
Your conditions would look like this:
The screen shot below would show you, even if all options are selected as yes. When you click "No" on the first condition, all other options disappear.
You can made the changes to your conditions in your form to get the result. As well as you can clone my form
I hope this helps! Please inform us if you need additional assistance.
It is interesting that you reverse the conditions. I had both conditions for yes and no instead you just had the "No" condition, and that works. I am curious how the condition know what to do when user select "Yes" when there are only conditions with "No". Can you shed some lights on this? Thanks.
When you select that you would like for those options to be hidden when you select "No", the condition is automatically set to "Show" when any other option other than "No" is selected.
Basically it is like an IF statement If the answer is No "Hide, Else "Show"
Setting the condition, to hide all options when "No" is selected prevents the issue that you were experiencing when the other options were selected as "Yes" and still showing when the first option is selected as "No"
I hope this explanation helps you. Please inform us if you need further assistance.