This article will show how to set the Start Date field a Non Mandatory field using user event script.
1. Create a new user event script. Customization > Scripting > Scripts > New > User Event
2. Enter information needed on the Basic Information:
Name: (name of your script)
Scripts > Script : Upload the sample script Below.
Before Load Function : startDate
Deployments > Applies to: Event
Deployed: Yes
Status: Released
Save
Sample Script:
function startDate(){
var field = nlapiGetField('startdate');
field.setMandatory(false);
}
No comments:
Post a Comment