The save to session action field type lets you save data into the current session, creating one if required, against a named variable. For a more detailed look at the order actions are processed in see the The Form Lifecycle: Control and Action Processing reference article.
Properties
Label | Description | Type Name |
---|---|---|
Data function | The JavaScript function that is executed server-side to set the data you want to store. The Helper Library functions are available for use in this function. This simple example returns the value of a helper variable named "data"function( helper, processor, props, context ) { | ACTIONFUNC |
Key | The name, or key, under which the data is stored within the current session | KEY |
Action Results
The following can be accessed using .utilGetActionResults once the action has been processed.
"FIELDNAME": {
"success": "true"
}
Storage Location
Any data saved via the Save to Session action is available within the Form Context under the
"FORMSESSIONSTORE": {
"exampleKey": "exampleData",
}
Last modified on January 28, 2021