Modules

filter

 

Objects/Functions

module (N/currentRecord)

SuiteScript 2.0

Field.isReadOnly

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Field.isReadOnly for more information.

N/currentRecord Module
Field.isReadOnly
Property Description: Returns true if the field on the record form cannot be edited, or false otherwise. For textarea fields, this property can be read or written to. For all other fields, this property is read-only.
Type: boolean
Module: N/currentRecord Module
Supported Script Types: Client scripts For more information, see SuiteScript 2.0 Client Script Type.
Since: 2016.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Field.isReadOnly

Example:

// Code Example 1
//Add additional code
//...
if (objField.isReadOnly) {
...
}
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4794213415.html