Modules
Objects/Functions
SuiteScript 2.0
{Form}.addButton({id: {string*},label: {string*},functionName: {string}})
N/ui/serverWidget Module
Form.addButton()
Method Description:
Adds a button to a form.
Returns:
serverWidget.Button object
Supported Script Types:
SuiteScript 2.0 Suitelet Script Type and SuiteScript 2.0 User Event Script Type (beforeLoad(scriptContext))
Governance:
None
Module:
N/ui/serverWidget Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Form.addButton(options)
Example:
// Code Example 1
//Add additional code
//...
var form = serverWidget.createForm({
title : 'Simple Form'
});
form.addButton({
id : 'buttonid',
label : 'Test'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4337761696.html