Modules

filter

 

Objects/Functions

module (N/ui/serverWidget)

SuiteScript 2.0

Button.isHidden

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Button.isHidden for more information.

N/ui/serverWidget Module
Button.isHidden
Property Description: Whether the button is hidden in the UI. The default value is false, which means the button is visible. If set to true, the button is not visible in the UI. This property is supported on custom buttons and on some standard NetSuite buttons. For a list of supported standard buttons, see Button IDs.
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.isHidden

Example:

// Code Example 1
//Add additional code
//...
var form = serverWidget.createForm({
title : 'Simple Form'
});
var button = form.addButton({
id : 'buttonid',
label : 'Test'
});
button.isHidden = true;
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4325806318.html