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

    Multiple Conditions for one instance

    Asked by nLuisi on December 12, 2013 at 05:35 PM

    I'm trying to set up a form where initially all of the options are hidden, then once something is selected, the corresponding section appears based on what is selected. For some reason, when I do this, then test the form, as soon as I select something, all of the sections show up instead of just the one section that should be showing.

     

    Is there a work around for this, or am I doing something wrong?

    multiple conditions sections hidden selected select
  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on December 12, 2013 at 09:07 PM

    I think you must explain in detail to us what is the exact scenario you wish to accomplish to

    For example if I want to show a number of fields based on the number of people. Using SHOW conditions, it will not show unless the condition is met.

    IF number of peopel EQUALS  to 1 THEN SHOW

    Textbox-1

    Email-1

    Comments-1

    IF Number of people EQUALS to 2  THEN SHOW

    Textbox-1

    Email-1

    Comments-1

    Textbox -2

    Email- 2

    Comments-2

    Please note that the conditions shouls be all set to SHOW or HIDE , but we cannot combine this specially if some rules or actions are similar

  • Profile Image

    Answered by nLuisi on December 14, 2013 at 12:24 AM

    Hi Jeanette! Thank you for respondng!

    What I'm trying to accomplish is having a radio button that hides all of the fields below it. however, once a button is selected a field is shown based on that selection..

    If I have my radio button with options A  B  C

    Option A will show D  E  but B and C will remain hidden

    Option B will show F  G but A  and C will remain hidden 

    Option C will show  H  I but A and B will remain hidden..

    For some reason when I set the conditions up to do this, I run the form and once I click an option, everything is showing including the fields that should be hidden..

  • Profile Image
    JotForm Support

    Answered by abajan on December 14, 2013 at 05:05 AM

    Thanks for the additional information. You would need to configure the conditions in a fashion similar to that shown below:


    This demo
    has the above conditions. Clone it and examine its conditions if you wish.

    I don't know the specific form to which you want to apply the solution but whenever setting up show/hide conditions, the question to ask oneself is, "Under what condition(s) should this field (these fields) be shown?". I've found that that line of thinking makes it easier to configure conditions than, "When this field is equal to x, which field(s) do I want shown?"

    However, I'm curious about something. As you can see in the screenshot, the first condition is rather unsual but it was the best I could come up with to never show fields AB and C ("Alpha", "Bravo" and "Charlie" in the demo). So, my question is under what circumstances should they be shown? Or do you not want them shown at all?

  • Profile Image

    Answered by nLuisi on December 16, 2013 at 12:11 PM

    Hi Abajan!

    Thank you for your response! That is exactly how I have it set up, it isn't working... Here is the link to the form I'm trying to do...http://www.jotform.com//?formID=33425227942858

    For some reason, (I can only guess) I think it has something to do with the fact that I am using HTML to create images in the button area as opposed to merely stating the options. If anyone has any ideas for a work around on this let me know! Thank you!

  • Profile Image
    JotForm Support

    Answered by abajan on December 16, 2013 at 01:38 PM

    Hi again,

    Replacing the single condition with the following multiple conditions should correct the form's behavior:


    There's a fifth rule not shown in the screenshot, which states:

    If What device are you selling Is Equal To Other Devices, Show Select the Other Device Type.


    The first thing you'll notice is that all of the "Hide" rules have been replaced with "Show" ones. As our manager Jeanette has stated above, once a "Show" condition is set on a field it will be hidden until the set condition(s) are met. Of course, with "Show" conditions the rules had to be changed from "Is Not Equal To" to "Is Equal To".

    With the above settings, this is the result. Is that the functionality you wanted to achieve?