serverWidget.createForm(options)

Method Description

Creates a form object.

Returns

serverWidget.Form object

Supported Script Types

SuiteScript 2.x Suitelet Script Type

Governance

None

Module

N/ui/serverWidget Module

Since

2015.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

options.title

string

required

The title of the form.

2015.2

options.hideNavBar

Boolean

optional

Indicates whether to hide the navigation bar menu.

By default, set to false. The header appears in the top-right corner on the form.

If set to true, the header on the assistant is hidden from view.

2015.2

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'
});
...
//Add additional code 

        

Related Topics

General Notices