- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 02:15 PM
I have a field "country" that is a choice, but I don't want to enter all the countries by hand , is there a way to accomplish this?
thanks in advance
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 02:17 PM
Hi Ulrich,
Why dont you make it a reference field to the core_country table.
I think it will be easy and no scripting needed plus if You want to add all countries how long you want you choices to go.
So i think reference field will be suitable for you.
Mark Correct or helpful if it helps.
***Mark Correct or Helpful if it helps.***

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 02:17 PM
Hi Ulrich,
Why dont you make it a reference field to the core_country table.
I think it will be easy and no scripting needed plus if You want to add all countries how long you want you choices to go.
So i think reference field will be suitable for you.
Mark Correct or helpful if it helps.
***Mark Correct or Helpful if it helps.***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 02:23 PM
Unfortunately, there are records ill migrate to this new table with the value united_states which is different from the value inside core_country.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 02:31 PM
Ok I think this will help but you will need to modify the script a little.
Script Include choices
***Mark Correct or Helpful if it helps.***