Conditionally hidden field is still shown on a form

  • gsobeautiful
    Asked on July 31, 2015 at 3:09 PM

    I swear this form was working before it went live! The condition that is not working now is:

    If "Do you wish to purchase additional tickets?" equals "No", then Hide "Please enter the number of tickets you wish to purchase".

  • Ben
    Replied on July 31, 2015 at 5:00 PM

    I took a look at your jotform and I see the issue.

    The issue is that one of your rules is saying that it should be shown while the other says that it should not be shown - with the one that is set to show it having bigger priority.

    Conditionally hidden field is still shown on a form Image 1 Screenshot 30

    That is however not all. The most important part is that you are only checking if the option No is selected, and since it is already shown, you want to hide it so I made just a slight modification of the conditions to make this all work together:

    Conditionally hidden field is still shown on a form Image 2 Screenshot 41

    You can see it here working as it should: http://form.jotformpro.com/form/52116924129958

    To see the reason why it now works and why it was not, lets just turn the conditions into statements.

    Original:

    If You would like to purchase additional tickets field is set to No, then I want to hide the field Please enter the number of tickets that you wish to purchase, since we will not need it.

    Changed:

    If You would like to purchase additional tickets field is not equal to Yes, I do not care if it is set to no or not set yet, I just wish to hide the field Please enter the number of tickets that you wish to purchase so that it is not in the way.

    While it might not look it at first, if you imagine the words that you are thinking you will see the conditions that you must set:

    IF {You would like to purchase additional tickets} field is not equal to "Yes", I do not care if it is set to no or not set yet, I just wish to hide the field {Please enter the number of tickets that you wish to purchase} so that it is not in the way.

    :)

    Do let us know if you have any further questions or issues and we would be happy to assist and help you sort them out :)