Modules
Objects/Functions
SuiteScript 2.0
{Assistant}.addFieldGroup({id: {string*},label: {string*}})
N/ui/serverWidget Module
Assistant.addFieldGroup()
Method Description:
Adds a field group to the assistant. A field group is a collection of fields that can be displayed in a one or two column format. Assign a field to a field group in order to label, hide or collapse a group of fields.
By default, the field group is collapsible and appears expanded on the assistant page. To change this behavior, set the FieldGroup.isCollapsed and FieldGroup.isCollapsible properties.
Returns:
serverWidget.FieldGroup 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=Assistant.addFieldGroup(options)
Example:
// Code Example 1
//Add additional code
//...
var assistant = serverWidget.createAssistant({
title : 'Simple Assistant'
});
assistant.addFieldGroup({
id : 'idname',
label : 'Sample label'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4332762451.html