Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Field.type

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

N/record Module
Field.type
Property Description: Returns the type of a body or sublist field. For example, the value can return text, date, currency, select, checkbox, etc. For more information on possible return values, see format.Type. The maximum character limit for select field types is 801.
Type: string (read-only)
Supported Script Types: Client and server-side scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/record Module
Sibling Object Members: Field Object Members
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Field.type

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.type === 'checkbox'){
//Perform an action
}
//...
// Add additional code.

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