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.
Form fields are being displayed even if the condition to hide them is added.Asked by Deralict on January 08, 2015 at 07:59 PM
On my form, I have several fields which are set to SHOW or HIDE based on the value of other fields. For example, a field (a Bootstrap Switch Field) is labelled "High blood pressure?" and has the value Yes|No. A following field (a set of radio buttons) labelled "Is your blood pressure currently in the normal range?" has the values Yes|no|I don't know. A condition states:
IF High blood pressure? Is Equal To "Yes"
SHOW Is your blood pressure currently in the normal range?
...and another condition states:
IF High blood pressure? Is Equal To "No"
HIDE Is your blood pressure currently in the normal range?
Several other fields are set up the same way. By default, "High blood pressure?" is set to "No", so by default "Is your blood pressure currently in the normal range?" should be hidden. The entire form can be seen here.
The problem is, when the form is displayed "High blood pressure?" is always at the default value ("No"), but SOMETIMES the field "Is your blood pressure currently in the normal range?" is visible, and SOMETIMES it is not. This behaviour appears to be random (refreshing the page will sometimes produce a different result).
In addition, and also apparently randomly, SOMETIMES toggling the value has no effect on the visibility of "Is your blood pressure currently in the normal range?" (as if the conditional logic is just not working).
These same symptoms are seen with all my fields that are set up this way.
What is going on?
Please be noted that you do not have to necessarily add condition to hide a form field. If you have a condition to show form field that should be sufficient because if the condition does not match, the form field will automatically be hidden.
I would suggest you to delete/disable the condition you have added to hide the fields and that should solve your problem. The following guide should help you:
Please take a look at the following cloned form and see if this works as expected: http://form.jotformpro.com/form/50081260661951? Feel free to clone this form for a closer look. The following guide should help you in form cloning: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL
Hope this helps.
Do get back to us if you have any questions.
Awesome, that did it! Good to know, as that was not intuitive. Thanks so much!
On behalf of ashwin_d, you're welcome. We're glad to hear that your issue is now resolved. Let us know if you need any help.
Thank you for choosing JotForm.