Toggle menu

helper.utilCreateAction(fieldName, actionName)

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

ArgumentTypeDescription
fieldNameString, requiredA a unique string to identify the action you are creating
actionNameString, requiredThe 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

Share this page

Facebook icon Twitter icon email icon

Print

print icon