How do I restrict the options in one field based on the result of another?

  • skyhighforms
    Asked on January 24, 2017 at 8:23 PM

    Hello,

     

    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.

     

    Thoughts?

     

    Thanks,

    David

     

    How do I restrict the options in one field based on the result of another? Image 1 Screenshot 20

  • Kiran Support Team Lead
    Replied 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.

    How do I restrict the options in one field based on the result of another? Image 1 Screenshot 30

    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.

    How do I restrict the options in one field based on the result of another? Image 2 Screenshot 41

    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!