record.Field

Object Description

Encapsulates a body or sublist field on a standard or custom record.

Use the following methods to access the Field object:

Certain properties of Field objects are available only when working with a record in dynamic mode.

For more information about record modes, see SuiteScript 2.x Standard and Dynamic Modes.

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/record Module

Methods and Properties

Field Object Members

Since

2015.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 objRecord = record.load({
    type: record.Type.SALES_ORDER,
    id: 275 
});

var objSublist = objRecord.getSublist({
    sublistId: 'item' 
});

var objField = objSublist.getField({
    fieldId: 'item' 
}); 
if(objField.label === 'myLabel' ){
    //Perform an action
}
if(objField.type === 'checkbox'){
    //Perform an action
}
...
// Add additional code 

        

Related Topics

General Notices