Anyone have a good way of displaying dependent sta...
# suitescript
k
Anyone have a good way of displaying dependent state and country select lists in a suitelet? The method I found is far from ideal (create customer, get sublist subrecord, and then get country selectOptions, or set country and then get selectOptions from state field)
m
I’ve struggled with this recently too, and haven’t found a good solution. I ended up making custom records for all countries and states.
k
I was worried there might not be a great solution - thank you though, greatly appreciate the response!
c
there IS a list in help though
just gotta translate it over
m
NetSuite makes it harder than it needs to be by not exposing this record type in searches. Also, in places it uses the abbreviated values for these objects (NZ) while reporting on selections as full strings (New Zealand)
b
it won't help the original question
but netsuite does expose states and countries as options for a list type field
and you can use filtering to make the state select filter based on country
it only works for countries for which netsuite uses a select for the state, so i find the use questionable