Conditional Logic: The hidden field is still showing

  • hnhunterca
    Asked on August 12, 2022 at 5:26 PM

    I've hidden "We've saved space for you to bring a guest! Will someone be joining you?" by default. I have a condition set where if their first answer matches a value in my list, it'll show for them, but it's showing for everyone.

    I can't pinpoint what condition is allowing this. Can you please help?

  • Raphael_V
    Replied on August 12, 2022 at 7:12 PM

    Hi Heather,

    Thanks for reaching out to Jotform Support. I went ahead and checked your form and saw that you've set Show Conditions for the specific fields. To fix this issue, all you have to do is to show the fields you've hidden by default. Please check out the screencast below as a reference.

    1660343907 62f6d66378a29  Screenshot 10

    You can check out the guide for How to Manage Multiple Fields to help you do the changes much quicker for multiple fields.

    Since you've already set the "Show" Condition for those fields, they would be automatically hidden until their conditions are met.

    After resolving your Show/Hide Conditions, I encountered an error that was caused by one of your conditions. Please see the screencast of the error below.

    1660345124 62f6db247797b  Screenshot 21


    To fix this, all you need to do is to change the "State" of your Enable/Required Field Condition from "Is Not Equal To" to "Does not Contain". If you use the former "State", It will disable the Submit if the answer is not precisely what is written in the "Value" of the condition.

    1660345612 62f6dd0cc5b48  Screenshot 32


    Here is what your form should look like after the changes.

    1660345903 62f6de2fb300a  Screenshot 43


    You can use my cloned form as a guide for your form. Feel free to clone the form for yourself.

    That's it. Let us know if you have any other questions.

  • hnhunterca
    Replied on August 13, 2022 at 7:30 PM
    Hi Raphael,
    We need the first field to match the values we input exactly for it to function correctly as a limiting guest list.
    For instance, we’re only inviting Bill Fields, not “Bill Fields plus mother,” and if the condition contains Bill Fields in any capacity, it’ll let him add whatever he wants to the field.
    I had this working previously so I’m really confused as to why “is not equal to” won’t function as we need it to anymore.
    ...
  • Chris_L JotForm Support
    Replied on August 13, 2022 at 9:40 PM

    Hello Heather,

    When I cloned and tested your form, the same thing happened to me. After investigating it a bit, I found a solution. Instead of using this conditional:

    1660441015 62f851b7cb338  Screenshot 10

    We have tested your form and it responded better with the "Does not Contain" option. Please take a look at the screenshot below on how to set the condition:

    1660441176 62f85258dce57  Screenshot 21

    You can refer to the cloned form on this link

    Let us know if there’s anything else we can do for you.

  • hnhunterca
    Replied on August 13, 2022 at 10:20 PM
    Hi Christopher,
    We need the first field to match the values we input exactly for it to function correctly as a limiting guest list.
    For instance, we’re only inviting Bill Fields, not “Bill Fields plus mother,” and if the condition contains Bill Fields in any capacity, it’ll let him add whatever he wants to the field.
    I had this working previously so I’m really confused as to why “is not equal to” won’t function as we need it to anymore.
    ...
  • Mary_Ed JotForm Support
    Replied on August 14, 2022 at 1:42 AM

    Hello Heather,

    Thanks for using Jotform. It appears that you probably posted this question twice. My colleague has addressed it. Please try the recommended workaround and let us know how it goes.