This is applicable to use cases wherein the customer would like to set the value of any field based on the custom form selected.
Usually, when a field's value is to be set upon changing the value of another field, it is the Field Change Function of Client Side Script that is being used. This is not applicable though, when the value of the field is dependent on the Custom Form selected.
In use cases such as this, it is the Before Load Function of User Event Script that is to be used instead. This is due to the behavior where the record reloads whenever the form to be used is changed. Please note that setting the default value to fields using nlapiSetFieldValue will only work while on 'Create' mode.
No comments:
Post a Comment