Skip Navigation

[Resolved] Country dropdown select custom field for user forms(Registration form)

This thread is resolved. Here is a description of the problem and solution.

Problem: In my Form, I would like to include a select field with options for each Country, so Users can select their Country of origin when registering for the site.

Solution: Toolset does not include built-in Country select fields, but another User has created a module that includes information for importing such a field. You may import information from that module as a starting point.

Relevant Documentation:
https://toolset.com/forums/topic/how-to-import-states-and-countries-into-selects-for-fields/#post-244714

0% of people find this useful.

This support ticket is created 3 years, 12 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by francisN-2 3 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1860159

I can't understand why toolset does not provide a simple way of displaying countries in a dropdown select field. Am I missing this feature? I simpleed need for users registration on my site to be able to select their country of residence from a dropdown select field.

#1860695

Hello, you are correct in that there's no built-in Country select field type, but other Users have created custom modules for similar purposes. You can use Toolset's Module Manager plugin to import their custom fields as a starting point if you'd like. Check the link here for more information, including a public link to download the field configurations in a module: https://toolset.com/forums/topic/how-to-import-states-and-countries-into-selects-for-fields/#post-244714

#1860973

My issue is resolved now. Thank you!
For those still wondering how to get this work for user forms, I did the following:
1) Created a custom field "country" under Toolset-> Custom Fields->User Fields
2) I manually added 3 fields in the select field.
3) I exported the types settings und Export/Import
4) I copied and pasted the other countries on this list downloaded from here : hidden link in my XML file.
5) I imported the xml I initially exported and that was it. All countries were in.