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

    Is there a way to require fields based on the selected option in the form?

    Asked by David Gerrard  on January 07, 2017 at 10:17 AM

    Hi there,


    I want to add a bit to a form that says "How many seasons do you have per year?"


    If they select three, then I require information about three, and they can't move on until they provide it.  

    If they select five, then I require information about five, etc.


    Is there a way to do that in Jotform?

  • Profile Image
    JotForm Support

    Answered by Welvin on January 07, 2017 at 12:50 PM

    Yes, this is possible with Jotform. You have two ways:

    1. Add and make the fields as an optional by default and require them based on the user selection. If the user selects 3, require the first 3 fields. 


    2. Add and make the fields as required, but only show then based on the selection of the user. If the user selects 2, show 2 fields.



    Here's my test form for you to see how the above works: https://form.jotform.com/70057509805962

    Here are the conditions when requiring the fields:

    Here are the conditions when showing/hiding fields: