Form.addSubmitButton(options)

Method Description

Adds a submit button to a form.

Note:

If the row count exceeds 25, sorting is not supported on static sublists created using this method.

Returns

serverWidget.Button object

Supported Script Types

Suitelets

User event scripts -beforeLoad entry point

For more information, see SuiteScript 2.x Script Types.

Governance

None

Module

N/ui/serverWidget Module

Since

2016.1

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

options.label

string

optional

The label for this button. If no label is provided, the label defaults to “Save”.

2016.1

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'
});
form.addSubmitButton({
    label : 'Submit Button'
});
...
//Add additional code 

        

Related Topics

General Notices