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

    Showing / Hidding values in a dropdown based on values in other fields

    Asked by cdj42086 on August 16, 2016 at 01:03 PM

    I am trying to determine the options in a dropdown box from the input from a previous user response - is this possible?


    For example: Dropdown 1 is Day (DECIDE THE DAY)

                        Dropdown 2 is Instructor (ONLY SHOWS THE INSTRUCTORS FROM THE DAY SELECTED)


  • Profile Image

    Answered by Ben on August 16, 2016 at 02:23 PM

    It is not possible to do it through the conditions directly, however there are 3 ways you could approach this (going from personally least favorable to favorite):1. grab the source code of your form and when you add it to your website, you add the code that removes the right options for you.* This means that each time you make a change on your form, you need to make the change on the website and to re-implement the code that removes the options.2. add multiple dropdowns, so that each has the options that you want to have, so you just set conditions to show the right one based on the first selection.* This setup allows you to quickly find and update right dropdowns and conditions, however it is easy to have too many of them real quick (depending on the complexity of your form)3. Create a custom CSS that will hide specific options in your dropdown based on the selection.* This is my favorite, however it is fairly easy to set up and edit if you know CSS. If you do not this is the most complex method of all 3 (although there are few rules that can be followed to make it easy).If you are familiar with JavaScript, the first option might be best, however please do let us know which one you prefer and we would be happy to assist with the same.