Button.label
Property Description |
The label for the button. You can use this property to rename a button based on context, for example to re-label a button for particular users that are viewing a page.
Note:
This property is supported on custom buttons and most standard buttons. |
Type |
string |
Supported Script Types |
Suitelets User event scripts -beforeLoad entry point For more information, see SuiteScript 2.x Script Types. |
Module |
|
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'
});
var label = button.label;
...
//Add additional code