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

  • Profile Image
    David Gerrard 
    Asked 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
    Welvin
    Answered 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. 

    https://www.jotform.com/help/367-How-to-Make-a-Field-Required-Based-on-User-s-Answer

    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.

    https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

     

    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: