Support

Home Forums Event Espresso Premium Country and State Drop Down Listing

Country and State Drop Down Listing

Posted: June 25, 2018 at 3:48 am

Viewing 3 reply threads


Brett Stallings

June 25, 2018 at 3:48 am

I have the country and State/Province fields added to my first attendee question group. I have country first then state/province so that the country dictates what is listed under the state/province. This works great on all browsers except for Safari. In Safari I see under state/province the entire list of all states from every country so it is quite long. Any insight? I’ve tested and found proper function on OSX with Chrome and Fire Fox.


Josh

  • Support Staff

June 25, 2018 at 1:19 pm

Hi Brett,

It’s actually expected that Safari will show all the options, but only the valid options will be selectable. (e.g. if you select United States for the Country field, Canadian Provinces cannot be selected for the State field).


Brett Stallings

June 25, 2018 at 6:06 pm

Sounds good. Thanks for the explanation Josh! Is there a way to default to having the USA at the top or to pick lets say the top 5 and have those be at the top. I know how to create a custom plugin just not sure the code needed to control this.


Josh

  • Support Staff

June 26, 2018 at 2:36 pm

You can add the following code for setting the US option as the default:
https://gist.github.com/joshfeck/fc06d0485b2afd367fb5ef1bba96890f

or instead, rearrange with:

https://gist.github.com/joshfeck/899d3ad846fc18718fb5

Viewing 3 reply threads

The support post ‘Country and State Drop Down Listing’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso