Field.isMandatory

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

Returns true if the standard or custom field is mandatory on the record form, or false otherwise.

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

        

Related Topics

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

General Notices