serverWidget.FieldLayoutType

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 the supported types of field layouts. This enum is used to set the value of the layoutType parameter when Field.updateLayoutType(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

STARTROW

This value makes the field appear first in a horizontally aligned field group in the normal field layout.

MIDROW

This value makes the field appear in the middle of a horizontally aligned field group in the normal field layout.

ENDROW

This value makes the field appear last in a horizontally aligned field group in the normal field layout.

OUTSIDE

This value makes the field appear outside (above or below based on form default) the normal field layout area.

OUTSIDEBELOW

This value makes the field appear below the normal field layout area. Using this enables you to position a field below a field group.

OUTSIDEABOVE

This value makes the field appear above the normal field layout area. Using this enables you to position a field above a field group.

NORMAL

This value makes the fields appear in its default position.

Syntax

Important:

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 

          

Related Topics

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

General Notices