serverWidget.FieldLayoutType
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 the supported types of field layouts. This enum is used to set the value of the |
Module |
|
Sibling Module Members |
|
Since |
2015.2 |
Values
Value |
Description |
---|---|
|
This value makes the field appear first in a horizontally aligned field group in the normal field layout. |
|
This value makes the field appear in the middle of a horizontally aligned field group in the normal field layout. |
|
This value makes the field appear last in a horizontally aligned field group in the normal field layout. |
|
This value makes the field appear outside (above or below based on form default) the normal field layout area. |
|
This value makes the field appear below the normal field layout area. Using this enables you to position a field below a field group. |
|
This value makes the field appear above the normal field layout area. Using this enables you to position a field above a field group. |
|
This value makes the fields appear in its default position. |
Syntax
The following code sample shows 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.updateLayoutType({
layoutType: serverWidget.FieldLayoutType.OUTSIDEBELOW
});
...
//Add additional code