Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Button.label for more information.
N/ui/serverWidget Module
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.
This property is supported on custom buttons and most standard buttons.
Type:
string
Supported Script Types:
SuiteScript 2.0 Suitelet Script Type and SuiteScript 2.0 User Event Script Type (beforeLoad(scriptContext))
Module:
N/ui/serverWidget Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Button.label
Example:
// Code Example 1
//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
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4325807686.html