Modules

filter

 

Objects/Functions

module (N/ui/serverWidget)

SuiteScript 2.0

Field.type

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

N/ui/serverWidget 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: SuiteScript 2.0 Suitelet Script Type and SuiteScript 2.0 User Event Script Type (beforeLoad(scriptContext))
Module: N/ui/serverWidget Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Field.type

Example:

// Code Example 1
//Add additional code
//...
var form = serverWidget.createForm({
title : 'Simple Form'
});
var field = form.addField({
id : 'custpage_textfield',
type : serverWidget.FieldType.TEXT,
label : 'Text'
});
var fieldtype = field.type;
//...
//Add additional code

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