Field.isReadOnly

Note:

The content in this help topic pertains to SuiteScript 2.0.

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.x Client Script Type.

Since

2016.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/currentRecord Module Script Samples.

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

        

Related Topics

currentRecord.Field
N/currentRecord Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices