Skip to Content
DataVariable

Variable

In many scenarios, data is not used directly but is stored in a variable for reuse. Variables are divided into “client variables” and “page variables” based on their scope. The use of variables involves three steps: definition, assignment, and reference.

Client Variables

Client variables can be referenced by all pages and are typically used to store global configuration information.

  1. Definition

Open “Settings” → “Global” → “Add Client Variable”. Choose a variable name, select a type, and optionally set a default value to define a client variable.

  1. Assignment

Assign values using “Set Client Data”, which can be done in global settings or on a page.

  1. Reference

Client variables can be referenced by all pages.

Page Variables

Page variables can be referenced by all components and actions within a page and are used to store data related to that page.

  1. Definition

Enter the page, open “Data”, and click “Add Page Variable”. Choose a variable name, select a type, and optionally set a default value.

Define page variable in page data settings

  1. Assignment

Assign values using “Set Page Data”.

Set page data action

  1. Reference

Page variables can be referenced by all components and actions within the page.

Reference page variable in component or action

Last updated on