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

    All states and cities widget: Selecting any specific countries in the list to display is not working

    Asked by Sholinkadmin on August 03, 2016 at 04:10 PM

    Hello, I added the  "All Cities and States" widget to my form, however, I'd like for it to only display cities/states for the United States.  So I input "United States" in the box that says: "Countries to show".  However, when I preview the form, it still displays all the countries and the user needs to click the drop-down box and select the United States first.  Is there a way to make it show only the United States, and make it so that no selection is needed, it just auto-selects the United States so that the user only needs to select the city and state?  Thanks for your help.




    Page URL:

  • Profile Image
    JotForm Support

    Answered by Kiran on August 03, 2016 at 05:06 PM

    It seems that there is an issue with the widget. I am able to replicate the issue at my end. Let me forward the issue to our backend team to take a look. If there is any update in this regard, you'll be posted here.

    Let me also see if I get any workaround to display only US in the list. I'll let you know in this thread if I get any information with this.


  • Profile Image
    JotForm Support

    Answered by Kiran on August 03, 2016 at 05:24 PM

    Please inject the following code to the Custom CSS section of the widget so that only US will be displayed.

    #countries option:not(:nth-child(240)) {

        display: none;


    Hope this information helps! 

  • Profile Image
    JotForm Support

    Answered by TitusN on August 19, 2016 at 05:56 AM

    We've fixed the country filter setting. 

    Please try it again and let us know. 


  • Profile Image

    Answered by tdsw on March 29, 2017 at 02:50 PM

    The city sections for US aren't all accurate
  • Profile Image
    JotForm Support

    Answered by Kiran on March 29, 2017 at 04:11 PM


    Since it is a old thread, we have moved your query to a separate thread and address it there shortly.


    Thank you!