Page 1 of 1

Form Select Box with state/country

Posted: Tue Oct 29, 2019 10:03 pm
by harvillo
Any plugins for a form field with a state or country lists?

Re: Form Select Box with state/country

Posted: Wed Oct 30, 2019 6:52 am
by Pablo
You can use the built-in combobox for this.
Click Import->predefined values to import a list of states or countries.

Re: Form Select Box with state/country

Posted: Wed Oct 30, 2019 4:19 pm
by harvillo
Thank you,sir!

Re: Form Select Box with state/country

Posted: Wed May 17, 2023 8:14 am
by cadtec
Hello

Is there a setting to pre-select the country in which the visitor is located in the list?

Greetings,
André

Re: Form Select Box with state/country

Posted: Wed May 17, 2023 11:57 am
by BaconFries
This would need a custom script such as the following:
https://stackoverflow.com/questions/211 ... -down-list
Example: when I visit the url it shows that my location is United Kingdom. I also tried with a VPN using Switzerland which I believe is your location and it showed correctly.
https://jsfiddle.net/6ythcL5j/

Re: Form Select Box with state/country

Posted: Wed May 17, 2023 12:26 pm
by cadtec
Thank you very much for the help.
This works very well :-)