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

    I'm looking to provide a dropdown where the user selects a state, which

    Asked by sharebids on August 26, 2012 at 12:30 PM

    I'm looking to provide a dropdown where the user selects a state, which will limit choices in a second dropdown to only those cities within a state. Other option would be to include (in the first option table) header selections of state with sub-selections of city. Only problem is that I don't want the users to chose the state level.

    How can I accomplish either of these?



    This is a re-post of a comment on Smart Forms Using Conditional Logic

  • Profile Image

    Answered by gori-mathew on August 26, 2012 at 01:01 PM

    Find our response for your questions on the post above;

    Dropdown where the user selects a state, which will limit choices in a second dropdown to only those cities within a state

    Yes, this is possible. You need to create customized Drop Down and include the states that you only need to appear. You can find Drop Down feature under Form Tools are shown on the screenshot below;

    Ther option would be to include (in the first option table) header selections of state with sub-selections of city

    Yes, you can create dropdowns that depend on other dropdowns. This can be accomplished using "Conditions" feature on JotForm Form Builder.

    Here is the example form that can illustrate how this works out:

    https://www.jotform.com/form/2732706817

    To create this form, I first created three dropdown questions on the Form Builder. Then I clicked on "Conditions" button at the top under the "Setup & Share" tab.

    Then I created two conditions for each region:

     Here is the conditions:

    SHOW Northeast Cities field. When "Region" Equals To "Northeast"

    SHOW Northwest Cities field. When "Region" Equals To "Northwest"

    You can also view the below link for more details;

    https://www.jotform.com/answers/57482-Advanced-Drop-Down-Option

    JotForm conditions are very flexible. Please give it a try and let me know if you need any further help.

  • Profile Image

    Answered by sharebids on September 02, 2012 at 12:29 PM

    So in order to have city selections for 50 states, I need to produce 50 subset city menus? Seems a bit cumbersome, but I think I understand.

    Next question: By providing the form data back to my website, I now would have 50 different columns (for each city dropdown) that I'd like to avoid. Is there a way to concatonate those fields into a single field without using open html and using jot form functionality?

    And if open html is my only option, what is the open html to make that happen?

  • Profile Image

    Answered by jeanettebmz on September 02, 2012 at 01:28 PM

    I think you could accomplish that by downloading the source code of the form and using print javascript  functions .  Take a look at this external workaround  and let us know if it worked out for you. Of course you would have to get the element id's of the form to make it to work