Creates and returns an action object, representing an action performed by one of the form family's "action fields".
This function can be used in scripted action fields to replicate and extend the functionality of the standard action fields. It is most commonly used to create custom confirmation messages, displayed once the form has been submitted, or to create custom email actions.
Executed
Server-side only.
Arguments
Argument | Type | Description |
---|---|---|
fieldName | String, required | A a unique string to identify the action you are creating |
actionName | String, required | The action you'd like to create, for example "EMAIL", "REDIRECT", "SAVEFORMSESSION" etc |
Returns
Object
Examples
For a worked example, see the Form Action Fields and Scripted Actions knowledge base article.
Last modified on May 02, 2024