Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

record.Field

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=record.Field for more information.

N/record Module
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: Record.getField(options) Record.getSublistField(options) Record.getCurrentSublistField(options) CurrentRecord.getField(options) CurrentRecord.getSublistField(options) For a complete list of this object’s methods and properties, see Field Object Members.
Supported Script Types: Client and server-side scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/record Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=record.Field

Example:

// Code Example 1
// 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.

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4435738444.html