Column.isMandatory
Property Description |
Indicates whether the column is required. |
Type |
boolean |
Module |
|
Sibling Object Members |
|
Since |
2020.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/record Module Script Samples.
// Add additional code
...
var sublistObj = recordObj.getSublist({
sublistId: 'sublistId'
});
var columnObj = sublistObj.getColumn({
fieldId: 'columnId'
});
columnObj.isMandatory = true; // set the property value
var isMandatory = columnObj.isMandatory; // get the property value
})...
// Add additional code