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.


  • Profile Image

    Logic problem with hidding fields

    Asked by deluca on February 04, 2013 at 08:20 AM

    Hello,

    I am struggling with this:

     

    If I have 3 radial buttons:

    button 1

    button 2

    button 3

     

    I then have 3 drop down menus with:

     field 1 : 1 to 10 people

     field 2 : 11 to 20 people

     field 3 : 21 to 30 people.

     

    I need to have the right drop down menu showing when the right radial button is being clicked.

    I tried:

    If Button 1 is filled(or equal to..I tried this too), then SHOW field 1

    If Button 1 is filled(or equal to..I tried this too), then HIDE field 2

    If Button 1 is filled(or equal to..I tried this too), then HIDE field 3

     

    If Button 2 is filled(or equal to..I tried this too), then SHOW field 2

    If Button 2 is filled(or equal to..I tried this too), then HIDE field 1

    If Button 2 is filled(or equal to..I tried this too), then HIDE field 3

     

     

    If Button 3 is filled(or equal to..I tried this too), then SHOW field 3

    If Button 3 is filled(or equal to..I tried this too), then HIDE field 1

    If Button 3 is filled(or equal to..I tried this too), then HIDE field 2

     

     

    But it seems to be conflicting and does not work, any work around please?

     

    Thank you,

     

    Ben

     

  • Profile Image
    JotForm Support

    Answered by EduardoMendez on February 04, 2013 at 09:31 AM

    Hi there, 

    Here is a form that accomplishes what you have described:

    http://form.jotformpro.com/form/30343641582955?

    It is a clone of your form.

    You can clone this form yourself if you wish to use it or inspect the way it has been setup

    Her eis a guide to help you with that:

    http://www.jotform.com/help/28-Cloning-a-Form-from-a-Web-Page

    You can see the conditions that are set by following this visual guide:

    Let us know if that helps!

  • Profile Image

    Answered by deluca on February 04, 2013 at 10:26 AM

    Hello,

     

    Thank you for your help!,

     

    I am totally lost, I cloned your form and it works, but my form here with the exact same logic will not work, any idea why please?

    http://form.jotformeu.com/form/30343123989355

     

     

    Thanks!

     

     

    Ben

  • Profile Image

    Answered by deluca on February 04, 2013 at 10:30 AM

    Sorry,

     

    I did miss something out in your logic, I added it and now it works.

     

    I am still very confused on why the fields can only show correctly if the "number of adults" field is set to "show", I do not understand the link.

     

    Thank you,

     

    Ben

  • Profile Image
    JotForm Support

    Answered by jonathan on February 04, 2013 at 11:32 AM

    Hi Ben,

    If I understand you correctly, the part you are confused with is the SHOW reason.

    Please remember, if you used the SHOW action, -- you do not have to used HIDE action anymore on the same field, because it will already default to HIDE... before it can even SHOW.

    Please inform us if you need further assistance understanding this.

    Thanks.