Modules

filter

 

Objects/Functions

module (N/ui/serverWidget)

SuiteScript 2.0

Form.addTab(options)

{Form}.addTab({id: {string*},label: {string*}})

N/ui/serverWidget Module
Form.addTab()
Method Description: Adds a tab to a form. In order for your tab to appear on your form, there must be at least one object assigned to the tab. Otherwise, the tab will not appear. If you have less than two tabs on your form, the tab will not appear. Instead the fields assigned to the tab will appear at the bottom of the form.
Returns: serverWidget.Tab 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.addTab(options)

Example:

// Code Example 1
//Add additional code
//...
var form = serverWidget.createForm({
title : 'Simple Form'
});
var tab = form.addTab({
id : 'tabid',
label : 'Tab'
});
//...
//Add additional code

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