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

    Can I conditionally change the options of a Dropdown menu?

    Asked by developmenplan on June 04, 2017 at 03:44 AM

    hi there... 

    can u help me , i've form but need your help to solve condition 

    https://www.jotform.com/build/71541181310443

    when  input text is : A, dropdown will be only show : number 1 until 5, then when input text is B : dropdown will be only show 6 until 10 

     

    thanks for help ^_^

     

     

     

    Page URL:
    https://www.jotform.com/build/71541181310443

  • Profile Image
    JotForm Support

    Answered by Jim_R on June 04, 2017 at 06:52 AM

    You can't conditionally change the options inside a Dropdown Menu. The only alternative you can do is to setup multiple Dropdown fields that will match your Condition.

    e.g. Create 1 Dropdown with 1 to 5 and another Dropdown with 6 to 10, then conditionally show one of them depending on the input on the Textbox.

    IF Textbox IS EQUAL to A THEN SHOW Dropdown with 1 to 5 fields

    IF Textbox IS EQUAL to B THEN SHOW Dropdown with 6 to 10 fields

    Since you're working with Dropdown Fields, it may be worth checking this widget too. I don't know what your workflow is but this allows dynamic options inside the dropdown widget: https://widgets.jotform.com/widget/dynamic_dropdowns

    Related guide: How-to-Add-a-Widget-to-your-Form 

    Give both of them a spin and let us know if you'd need more help.