Field.isDisabled

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

This property reflects the display type of a field. A value of true means the field is disabled. A value of false means the field is enabled. Note also:

  • If you are working with a body field, you can use this property to change the field’s display type.

  • If you are working with a sublist field, you can set this property to true or false, but be aware that this action affects the entire sublist column, even though a sublist field is associated with one line.

  • For both body and sublist fields, you can use Field.isDisabled to determine whether the field is disabled or enabled.

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.isDisabled) {
    ...
}
...
//Add additional code 

        

Related Topics

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

General Notices