Modules

filter

 

Objects/Functions

module (N/ui/serverWidget)

SuiteScript 2.0

serverWidget.AssistantSubmitAction

serverWidget.AssistantSubmitAction.{|BACK,CANCEL,FINISH,JUMP,NEXT|}

N/ui/serverWidget Module
serverWidget.AssistantSubmitAction
Enum Description: Holds the string values for submit actions performed by the user. This enum is used to set the value of the Assistant.getLastAction(). After a finish action is submitted, by default, the text “Congratulations! You have completed the ” appears on the finish page. In a non-sequential process (steps are unordered), jump is used to move to the user’s last action. JavaScript does not include an enumeration type. The SuiteScript 2.0 documentation utilizes the term enumeration (or enum) to describe the following: a plain JavaScript object with a flat, map-like structure. Within this object, each key points to a read-only string value.
Supported Script Types: SuiteScript 2.0 Suitelet Script Type and SuiteScript 2.0 User Event Script Type (beforeLoad(scriptContext))
Module: N/ui/serverWidget Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=serverWidget.AssistantSubmitAction

Example:

// Code Example 1
//Add additional code
//...
var assistant = serverWidget.createAssistant({
title : 'Simple Assistant'
});
//...
if (assistant.getLastAction() === serverWidget.AssistantSubmitAction.CANCEL) {
...
}
//...
//Add additional code

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