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.

     

    Tony

     

    Page URL:
    https://form.jotform.com/62156037324955

    all and how how can i
  • 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.

    Thanks!

  • 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. 

    Thanks!