Ok I figured that part out, just had to read the d...
# suitescript
k
Ok I figured that part out, just had to read the documentation. The country has to go first in dynamic mode. Next problem is it's not setting the state.
j
@Kris Wood, do you need to? I usually let NetSuite pick up the State automatically off of the zip code.
k
Well, it's not setting it right now. I've got it copying the value of a state field in my custom record to a customer record's addressbook, but it keeps coming through null no matter what is in the custom record's state field, so I think it must be an invalid value somehow. I'll try figuring out exactly what it's trying to set the customer addressbook value to, and if that doesn't fix it, I'll try without state and see if zipcode auto-populates it. Thanks!
It was a typo in the field name. XD Also the state field on the addressbookaddress subrecord turns out to be a text field not a select, which means I needed to use getText on the select field on my custom record not getValue. All is well now, thanks! 😄