That code as you post it will fire on ANY field ch...
# suitescript
a
That code as you post it will fire on ANY field change...
s
Hi, is it possible to isolate the fieldChanged event/function to occur/trigger only when one specific field is changed (i.e. item)? If I just change the item on the sublist without any other code firing in my function, the event triggers/fires 2 additional times (rate, description), causing an addional item to be added.
b
try using the post sourcing entry point instead
s
Genius! Thank you! I was racking my brains on this for hours. I actually tried post sourcing before posting in slack, but I erroneously left the field changed entry active.
b
committing before sourcing is complete usually causes problems, though its pretty rare to try to commit the line in a fieldChange or postSourcing in general
I usually recommend using
forceSyncSourcing
if you are committing the line
s
Done. Perfecto!