Assistant.addStep(options)
Method Description |
Adds a step to an assistant. Steps define each page of the assistant. Use Assistant.isNotOrdered to control if the steps must be completed sequentially or in no specific order. If you want to create help text for the step, you can use AssistantStep.helpText on the object returned. |
Returns |
serverWidget.AssistantStep object |
Supported Script Types |
Suitelets For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2015.2 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
required |
The internal ID for this step (for example, 'entercontacts'). |
2015.2 |
|
string |
required |
The label for this step (for example, 'Enter Contacts'). By default, the step appears vertically in the left panel of the assistant. |
2015.2 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/ui/serverWidget Module Script Samples.
//Add additional code
...
var assistant = serverWidget.createAssistant({
title : 'Simple Assistant'
});
assistant.addStep({
id : 'idname',
label : 'Sample label'
});
...
//Add additional code