Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Button.isDisabled for more information.
N/ui/serverWidget Module
Button.isDisabled
Property Description:
Whether a button is grayed-out and disabled.
The default value is false.
If set to true, the button appears grayed-out in the and cannot be clicked.
This method is not supported for standard NetSuite buttons. This method can be used with custom buttons only.
Type:
boolean
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.isDisabled
Example:
// Code Example 1
//Add additional code
//...
var form = serverWidget.createForm({
title : 'Simple Form'
});
var button = form.addButton({
id : 'buttonid',
label : 'Test'
});
button.isDisabled = true;
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4325807642.html