Set Page Variable
Page variables are restricted to the page where they are created and cannot be accessed throughout the entire application like regular variables. Use this action to create a variable and assign a value to it within a Multipage App.
Configuration
| Parameter | Description | Default |
|---|---|---|
| Key | Name (string) of the page variable | — |
| Value | The value to assign to the variable | — |
| Debounce | Time in milliseconds to wait before executing the action | Empty (no delay) |
Triggering via RunJS
await actions.setPageVariable('<variableKey>', <variableValue>);
variableKey must be provided as a string (enclosed in quotes), while variableValue doesn't require quotation marks if it's a numerical value.
info
For a full quick-reference of all actions' RunJS syntax, see Run Actions from RunJS.