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

SuiteScript 2.x Suitelet Script Type and SuiteScript 2.x User Event Script Type (beforeLoad(context))

Module

N/ui/serverWidget Module

Since

2015.2

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'
});
var button = form.addButton({
    id : 'buttonid',
    label : 'Test'
});
var label = button.label;
...
//Add additional code 

        

Related Topics

General Notices