Modules

filter

 

Objects/Functions

module (N/ui/serverWidget)

SuiteScript 2.0

serverWidget.FieldType

serverWidget.FieldType.{|CHECKBOX,LONGTEXT,CURRENCY,MULTISELECT,DATE,PASSWORD,DATETIME,PERCENT,DATETIMETZ,PHONE,EMAIL,SELECT,FILE,RADIO,FLOAT,RICHTEXT,HELP,TEXT,INLINEHTML,TEXTAREA,INTEGER,TIMEOFDAY,IMAGE,URL,LABEL|}

N/ui/serverWidget Module
serverWidget.FieldType
Enum Description: Holds the values for supported field types. This enum is used to set the value of the type parameter when Form.addField(options) is called. JavaScript does not include an enumeration type. The SuiteScript 2.0 documentation utilizes the term enumeration (or enum) to describe the following: a plain JavaScript object with a flat, map-like structure. Within this object, each key points to a read-only string value. Long text fields created with SuiteScript have a character limit of 100,000. Long text fields created with SuiteBuilder have a character limit of 1,000,000.
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=serverWidget.FieldType

Example:

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

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