I'm still learning in netsuite. and I have a case like the following
on the Requisition form, if input requestor in requisiton, how to change location field automatically. we can get the location in the employee field
can show an simple code for this case, thank's for helping
I would advise to go for a UserEvent script and use the beforeLoad hook instead to set the default values.
If you do want to use the
fieldChanged
in the client script and search for the location of the employee, your client script will need permissions on the employee record.