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

    Conditional logic

    Asked by Andrew on July 10, 2011 at 01:42 PM

    I have a question on my survey that asks for the number of children the user has. I then need to direct the user to a page with fields specific to the number that was provided. Here's what I did. I created a "how many kids" dropdown with options 1 - 6. Then I created six separate followup pages, each with space for answers about an additional child. Next, I created conditions that directed the user to the appropriate pages. So far so good.

     

    The problem I came across is that a user who completes the page for one child is then sent to the page for two children, the user who completes the page for two children is then sent to the page for three children, and so on and so on.

     

    Is there a way to bypass the other conditional pages?

  • Profile Image
    JotForm Support

    Answered by abajan on July 10, 2011 at 02:41 PM

    Hi Andrew

    Thanks for asking. Yes, those other pages can be bypassed by setting conditions for each of them except the last because the page that immediately succeeds that one wouldn't need to be skipped.

    Here's what to do:

    1. Make the "What is the number of minor children you and your spouse have in common?" field required (see screenshot in Step 3)

    2. Delete the following condition:

    Skip to page-5 When "What is the number of minor children you and your spouse have in common?" Equals To "1"
    (It's unnecessary since there is nothing between pages 4 and 5 to be skipped) 


    3. Make the fields relating to the information on each child required (45 in all because those in the "Information about six children common to both parties" section would not need to be set to reqiured)



    4. Add the following Skip to a page or end of the form condition on the Full Name field in the "Information about one child common to both parties" section:

    If Full Name field Is Filled Then after user clicks "next" button skip to Page 11


    (Due to the fact that there are several fields labelled "Full Name", this is where things progressively get trickier and trickier because it will be hard to distinguish one "Full Name" field from the other. The best advice I can offer is to thread carefully and afterward test the form thoroughly!)

    5. Add the following rule to the condition set in step 4:

    If Full Name (the first "Full Name" field in the "Information about two children common to both parties" section) field Is Filled If Any of these conditions are matched

     

    6. Add another rule to the same condition:

    If Full Name (the first "Full Name" field in the "Information about three children common to both parties" section) field Is Filled If Any of these conditions are matched

     

    7. Add a third rule to the same condition:

    If Full Name (the first "Full Name" field in the "Information about four children common to both parties" section) field Is Filled If Any of these conditions are matched


    8. Add a fourth rule to the same condition:

    If Full Name (the first "Full Name" field in the "Information about five children common to both parties" section) field Is Filled If Any of these conditions are matched

    This is how the condition and its rules should look:


    9. Save the condition, close the conditions wizard and save the form


    That's it. Good luck Jim!

    Be sure to let us know if you are able to successfully implement this solution and if there's anything else related to our product with which you require our assistance.


    ~ Wayne

    P.S. There may be an easy way to identify which "Full Name" label belongs to which field: Rename the the first occurrence of "Full Name" on each page to "Full Name 1", "Full Name 2", "Full Name 3" and so on. Then after the rules in the condition have been set, undo the name changes but I don't know if the conditions would still work with the labels having different names. I'll test this method and get back to you.