US State/Province choice list or reference table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2020 09:28 AM
I have yet another project where I need to include a field for a US State. (Yes, a complete address - I would like to offer the users the ability to select a state from a list instead of freeform text)
Is there a recommended table or choice list OOB that should be used for US States?
I've tried using the sys_report_map table ... it works most of the time, yet seems a bit cumbersome. I also feel like I'm using a table for a purpose it was not intended.
Thanks,
Thomas
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 11:13 AM
We just created a States and Provinces custom table for this and populated it. We then used the USPS web service to get zip codes when needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 12:58 PM
Yeah, I could do this... it just "feels" that there should be an OOB table with this common data already. I'm trying not to re-invent something if it already exists.
Now I'm thinking to either use the sys_report_map table or using this suggestion to create a custom table for county/zip/state to use in our custom apps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 01:00 PM
Please take a look at the below thread:
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2021 03:55 PM
You've probably solved this but for others your best bet is probably to just change the 'state/province' field on the user table to a choice list and create/generate the choices yourself. Then you can 'source' other choice lists from this field moving forward.