serverWidget.FieldDisplayType
JavaScript does not include an enumeration type. The SuiteScript 2.x 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 |
Module |
|
Sibling Module Members |
|
Since |
2015.2 |
Values
Value |
Description of Field Type |
---|---|
|
Prevents a user from changing the field |
|
The sublist field appears as a data entry input field (for a select field without a checkbox) |
|
The field on the form is hidden |
|
The field appears as inline text |
|
The field is not displayed on the form but can be made visible (for example, by an attached client script upon a field change) |
|
The field appears as a normal input field (for non-sublist fields) |
|
The field is disabled but it is still selectable and scrollable (for textarea fields) |
Syntax
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