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

  • cdj42086
    Asked on August 16, 2016 at 1: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)

                        Dropdown 3 is Sessions (ONLY SHOWS THE SESSIONS ON THE DAY SELECTED AND FROM THE INSTRUCTOR SELECTED)

    Jotform Thread 907689 Screenshot
  • Ben
    Replied on August 16, 2016 at 2: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.