Disable fields on a record
This sample is a client script that disables fields on a record.
The conversion of this script from SuiteScript 1.0 to SuiteScript 2.1 includes the following:
-
JSDoc tags are added at the top of the script to indicate the script version and script type.
-
The
definestatement is added which imports the N/record module. -
The
returnstatement is added with thepageInitentry point. -
A record is loaded using the
record.loadmethod. -
The
nlapiDisableFieldfunction is changed to theRecord.isDisabledproperty.
|
SuiteScript 1.0 Script |
SuiteScript 2.1 Script |
|---|---|
|
|