Note the code executes on a fieldChange event.
# suitescript
s
Note the code executes on a fieldChange event.