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

    How to skip pages based on user's answers?

    Asked by jplanidin on March 09, 2017 at 11:30 AM

    I'm trying to create conditions to either omit or show specific pages of my form.  The trouble I am having is getting the sequencing correct.  I would like to have one question determine the next page.  

    ie.

    Answer A goes to page 4 and then page 8.  It skips page 5,6,7

    Answer B goes to page 5 and then page 8. It skips page 4,6,7

    Answer C goes to page 6 and then page 8.  It skips page 4,5,7

    Answer D goes to page 7 and then page 8.  It skips page 4,5,7

     

    I'm struggling in sequencing of the conditions/style in order to have all these effective and establish the correct flow through the form.  I seem to get one or two of the sequences correct then by Answer C I seem to be looping back to see pages I thought would be omited

    Thanks for the help!

     

  • Profile Image
    JotForm Support

    Answered by Kevin_G on March 09, 2017 at 08:38 PM

    To avoid the current conflict between your conditions you could add  a statement to them to evaluate if certain field on the redirected page is already filled, and then redirect directly to the last page skipping the unnecessary pages. 

    For example, you could set up the first condition like: 

    If Answer  is equal to A goes to page 4. 

    Then once on the page 4 you will set another condition based on a required field, this will avoid the user to go to the next page without triggering the condition.

    Let's say you have an email field on the page 4, so you could set the second condition based on this field and on the first page answer. 

    Example:

    If Answer  is equal to A and email is filled then goes to page 8.

    Basically, you will add an additional condition based on a required field placed in the page of  the second redirection you do with the condition. This will allow you to avoid conflicts between the conditions and properly redirect your form to the next page based on the first answer and then to the last page.

    Here's my sample form based on the conditions you explained: https://form.jotform.com/70678290048967 

    Feel free to clone it and inspect the conditions I've added to it, this guide will help to clone the form: How-to-Clone-an-Existing-Form-from-a-URL

    If you have any question, please  let us know.