How to Setup Show/Hide a Field Condition for Several Options?

  • SCMarket
    Asked on October 6, 2015 at 8:58 PM

    Hi, 

    I am putting in conditionals. The first one works and all the others do not. I am trying to hide certain fields if a company name. Can someone take a look at this and let me know what I might be doing wrong? 

     

    Thank you very much!

  • mert JotForm UI Developer
    Replied on October 7, 2015 at 4:41 AM

    Hi,

    I've cloned your form and tried your conditions. You set conditions for only two company name, so the conditions are working for only those two companies.

    If your settings is going to same for all other companies' options, you can simply add new "IF" statement on a same condition.

     

    To do that,

    1) Open "Conditions" and click to pencil shaped icon to edit current condition.

    How to Setup Show/Hide a Field Condition for Several Options? Image 1 Screenshot 40

     

    2) On the upcoming window, you will see the settings for current condition. All you need to do is adding new "IF"s to that condition. Repeat this for every company option.

    How to Setup Show/Hide a Field Condition for Several Options? Image 2 Screenshot 51

     

    After this operation, you don't need other "Show/Hide a Field" condition, because we've already added this condition for all companies in one "Show/Hide a Field" condition.

    How to Setup Show/Hide a Field Condition for Several Options? Image 3 Screenshot 62  

     

    Also, you can preview or clone the demo form from the link below. I added all the companies into one "Show/Hide a Field" condition.

    http://www.jotformpro.com/form/52792406207960

     

    If you stuck somewhere in the process or need extra information, please let us know.

    Have a nice day.

  • SCMarket
    Replied on October 7, 2015 at 10:12 PM

    Thanks! that's very helpful. Some of the conditionals need to be adjusted but when I go into the conditions field it gives me the old view which is probably why it's not working that well when I add the hide conditions. It doesn't give me the new conditions column like the one above

    I get this for conditions, not the newer one.

     -- Thanks!

    How to Setup Show/Hide a Field Condition for Several Options? Image 1 Screenshot 20

     

     

  • mert JotForm UI Developer
    Replied on October 8, 2015 at 3:50 AM

    Hi again,

    Firstly, sorry for this issue. Currently, we are testing modern look, so some users have it randomly, some users not.

    However, there is nothing to worry about, because old wizard has the same feature.

     

    To add multiple "IF" state into a same "Show/Hide a Field" condition,

    After opening the "Show/Hide a Field" from the conditions, click to "Add New Rule" to add a new "IF" state, then the process continuous on the same way with the previous answer.

    How to Setup Show/Hide a Field Condition for Several Options? Image 1 Screenshot 20

     

    If you need any extra information, please let us know.

    Thanks.

  • SCMarket
    Replied on October 8, 2015 at 10:58 AM

    Thank you Mert for your help. I actually did exactly this for all of the companies and then went into preview. I did the If field and then the then field (for example if "select your company name" "equals" "alaska seafood" ... "then" "hide multiple" and I click the guest names that should be hidden. 

    Am I doing the hide multiple part incorrectly? It just doesn't calibrate when I preview it. All the guest fields stay the same and nothing shortens.

    Thanks!

    Ebony 

  • Charlie
    Replied on October 8, 2015 at 1:54 PM

    Hi,

    Have you tried using the Form Collapse field instead to hide multiple fields without selecting all of them? Here's a guide that you can refer to: http://www.jotform.com/help/297-Show-or-Hide-multiple-fields-at-once-using-form-collapse-tool 

    I cloned your form and also checked it directly. I see that you are using multiple "Hide" actions on each field. I would advise using "Show Multiple" instead. When you used "Show Multiple", it will only show the fields if the conditions have been met, when the condition is NOT MET, it will automatically HIDE the said fields. 

    How to Setup Show/Hide a Field Condition for Several Options? Image 1 Screenshot 20

     

    To select multiple fields, press CTRL+click on the fields you want to select.

    Please do make sure that you are using the same actions in all of those conditions that involved the same fields to avoid conflicts, which means if you use "Show Multiple" to one condition, you should use that same action to the other fields.

    Do let us know if that works.