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 do I restrict the options in one field based on the result of another?

    Asked by eldaveo007 on January 24, 2017 at 08:23 PM



    See the form below for example.



    What I wish to do is use the "Appointment Type" field to restrict the options for the "Duration".


    Ie - If the Appointment selected is "Video Analysis" then only 60mins could be selected.


    At the moment I've had to put additional data in the duration to make it clear for the user, but Ideally It would only contain the time duration, and the user would specify 1 on 1, up to 2 ppl, up to 4 ppl, etc.


    I've handled it by having 2 duration fields for now (only 1 is visible at a time), and that works from the user stand point, but I can not consolidate the data from the 2 fields (duration 1, duration 2) in to a single "duration" field. I'm using the data from the form in another system.

    I tried to copy the data from one field to the other, but I couldn't get the function to work.







    Page URL:

  • Profile Image
    JotForm Support

    Answered by Kiran on January 24, 2017 at 11:56 PM

    You can set the condition as shown below to show the option 'Video Analysis - 60 mins' when Video Analysis from the drop down is selected.

    This condition would also hide the other field with more options on the form. You may remove the following conditions from the form once the above condition is set.

    You may remove 'Video Analysis - 60 mins' option from the Duration radio button. If you want to use one field to restrict the entries, it is required to download the source code of the form and customize by adding some javascript as per the requirement. 

    Hope this information helps!