Portlet.setSubmitButton(options)
Method Description |
Adds a submit button to the form. |
Returns |
|
Entry Point |
|
Since |
2016.2 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
required |
The URL that the form posts data to. |
2016.2 |
|
string |
optional |
The button label. |
2016.2 |
|
string |
optional |
The target attribute of the form element, if it is different from the portlet’s own embedded iframe. Supported values include standard HTML target attributes such as Setting this value to |
2016.2 |
Syntax
The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see SuiteScript 2.x Portlet Script Type.
...
params.portlet.setSubmitButton({ url: 'http://httpbin.org/post', label: 'Submit', target: '_top'
});
...