Run Custom JavaScript Action
Executes a custom JavaScript expression when the action is triggered.
Allows to perform advanced logic, manipulate values, or interact with the page using custom code.
The output of this action can be used in succeeding actions.
This action does not output anything, and is meant to pass on data to other actions. For more details, see Referencing Data From Previous Actions.
Action Settings
Option | Default | Type | Description |
Custom Javascript | None | Text Box | A valid JavaScript expression that will be run at the time of the action. You can reference values from earlier actions using the data object. |
Reference ID | None | Text Field | Assign a unique name to store the result of the JavaScript expression for use in later actions. Format: Lowercase letters, numbers, and underscores only. |
Applied To
Select the source element where the action will originate. This determines which block or element will perform the specified action when triggered.