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
define
statement is added which imports the N/record module. -
The
return
statement is added with thepageInit
entry point. -
A record is loaded using the
record.load
method. -
The
nlapiDisableField
function is changed to theRecord.isDisabled
property.
SuiteScript 1.0 Script |
SuiteScript 2.1 Script |
---|---|
|
|