Pre-Populate City and State

  • smarch678
    Asked on May 9, 2017 at 12:45 PM

    I am looking for a way to have a field where someone begins typing in a city (in the US) and the form prepopulates the options available including the state that city resides.  

  • David JotForm Support Manager
    Replied on May 9, 2017 at 2:12 PM

    There are some widgets you may try, such as the All States and Cities widget: https://widgets.jotform.com/widget/all_states_and_cities 

    Or the Autocompleted Address widget: https://widgets.jotform.com/widget/autocompleted_address 

    Here is how to add the widget your form: https://www.jotform.com/help/252-How-to-Add-a-Widget-to-your-Form 

    Let us know if you need more help, we will be glad to assist you.

  • smarch678
    Replied on May 9, 2017 at 4:43 PM
    Thanks!
    Is there any way to set the default country to United States and only have
    state/city show up? I don't want my leads to have to choose a country.
    Thanks!
    ...
  • David JotForm Support Manager
    Replied on May 9, 2017 at 5:59 PM

    Yes, simply type the country you want to show, example:

    Pre Populate City and State  Image 1 Screenshot 20

    Let us know if you need more help.

  • smarch678
    Replied on May 9, 2017 at 6:43 PM
    I get that, but the country field is still visible to the lead. Basically,
    I want a city and state field without country field.
    ...
  • David JotForm Support Manager
    Replied on May 9, 2017 at 8:16 PM

    Unfortunately, it needs to show up for the user to select the cities.