serverWidget.FieldDisplayType

Note:

The content in this help topic pertains to SuiteScript 2.0.

Note:

JavaScript does not include an enumeration type. The SuiteScript 2.0 documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.

Enum Description

Holds the string values for supported field display types. This enum is used to set the value of the displayType parameter when Field.updateDisplayType(options) is called.

Supported Script Types

SuiteScript 2.x Suitelet Script Type and SuiteScript 2.x User Event Script Type (beforeLoad(context))

Module

N/ui/serverWidget Module

Since

2015.2

Values

Value

Description of Field Type

DISABLED

Prevents a user from changing the field

ENTRY

The sublist field appears as a data entry input field (for a select field without a checkbox)

HIDDEN

The field on the form is hidden

INLINE

The field appears as inline text

NODISPLAY

The field is not displayed on the form but can be made visible (for example, by an attached client script upon a field change)

NORMAL

The field appears as a normal input field (for non-sublist fields)

READONLY

The field is disabled but it is still selectable and scrollable (for textarea fields)

Syntax

Important:

The following code samples show the syntax for this member. It is not a functional example. For a complete script example, see N/ui/serverWidget Module Script Samples.

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

          

Related Topics

N/ui/serverWidget Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices