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

  • Profile Image
    Sholinkadmin
    Asked 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

     

  • Profile Image
    Kiran
    Answered 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
    Kiran
    Answered 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
    TitusN
    Answered on August 19, 2016 at 05:56 AM

    We've fixed the country filter setting. 

    Please try it again and let us know. 

    Thanks!

  • Profile Image
    tdsw
    Answered on March 29, 2017 at 02:50 PM

    The city sections for US aren't all accurate
  • Profile Image
    Kiran
    Answered on March 29, 2017 at 04:11 PM

    @tdsw,

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

    https://www.jotform.com/answers/1105937

    Thank you!