Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Replicate State/Province behavior in custom field?
How is the native State/Province field built in Address sublist? When I choose a country for which NS knows the States or Provinces, it's a dropdown list that shows only the states for that country (e.g. USA, Mexico, Canada). However, if I select Angola, the State field switches to freeform very fluidly and vice versa. How could I reproduce this?
My first idea is to create two fields for State/Province: 1) a List/Record field utilizing the native States list and 2) a freeform field. Then I'd hide/show the correct field based on country selection thru field change triggers. I don't know what snags I'd hit, but I'm sure it will be far more elaborate than I'd like. I could go less elegant in UI and just show both fields and do some coding that would grab the dropdown value if populated, the freeform if not.