serverWidget.Button
Object Description |
A button that appears in a UI object. To add a button, use Form.addButton(options) or Sublist.addButton(options). When adding a button to a record or form, consider using a Custom buttons only appear during Edit mode. On records, custom buttons appear to the left of the printer icon.
Note:
Currently you cannot use SuiteScript to add or remove a custom button to or from the More Actions menu. You can, however, do this using SuiteBuilder point-and-click customization. See Configuring Buttons and Actions. |
Supported Script Types |
Suitelets User event scripts -beforeLoad entry point For more information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2015.2 |
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 button = form.addButton({
id : 'buttonid',
label : 'Test'
});
...
//Add additional code