Modules
Objects/Functions
SuiteScript 2.0
{Form}.removeButton({id: {string*}})
N/ui/serverWidget Module
Form.removeButton()
Method Description:
Removes a button.
This method can be used on custom buttons and certain built-in NetSuite buttons. For more information about built-in NetSuite buttons, see Button IDs.
Returns:
void
Supported Script Types:
SuiteScript 2.0 Suitelet Script Type and SuiteScript 2.0 User Event Script Type (beforeLoad(scriptContext))
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/ui/serverWidget Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Form.removeButton(options)
Example:
// Code Example 1
//Add additional code
//...
function beforeLoad(context) {
var yourForm = context.form;
yourForm.removeButton('refund');
}
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4340356412.html