Wednesday, December 26, 2018

Ability to Set the Start Date a Non Mandatory Field when Creating Event Records

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);
}

This is an alternate solution for Enhancement 233940

No comments:

Post a Comment