<@U5TF1GQ20> I'll try the forceSyncSourcing For t...
# suitescript
r
@battk I'll try the forceSyncSourcing For the state, I've used direct 1:1 retrieval/replacement with the same failed results. For instance, I'm using Massachusetts. Which is MA when reading the field. Support even had me switch from a get/setValue to a get/setText with the same results.
b
expect multiple things to be wrong with your code. Trying to set the text of the state field to MA suggests you don't know the difference between the value and the text of a select option. Or at the very least didn't use that knowledge in the code you shared.
r
It looks like the right setting in my case is
ignoreFieldChange
on the country. The example code above is not everything I tested. But after using the forceSyncSourcing and
ignoreFieldChange
seemed to resolve it on the country. I suppose in my case, just ignore the country could solve it.
Because my use-case, I'm not really changing the country this shouldn't be a problem.