This lesson will cover the following topics:

02 | Overview

01 Getting Started

This tutorial covers adding page variables, including:
  • Page variables overview.
  • Adding page varibales.
  • Usage examples.
Note: when working with variables, ensure you have debug mode enabled so you can review how the variables are being passed.

02 Overview

Page variables are used to store data that is not visible to end users. Page variables are used when the variable only applies to a specific page and cannot be accessed by other project pages. Once the user leaves the page, data from the page variable is lost. 

03 Adding Page Variables

1. Expand the Pages dropdown.
2. Click the kebab menu next to the page you want to add the variable to.
3. Click Configure Actions.
expanded pages dropdown
Any variables you create will apply to this page only.

System variables are values that are set at the operating system level and can be accessed by various programs and processes running on the system. These variables provide information about the environment and configuration of the system.

Note: You cannot assign a value to a system variable.

Static Variables are used to affect elements, either from Salesforce, project elements, or other variables. You can set a specific value for static values.
configure actions > variables highlighted

When using variables for a Salesforce push or get, the Page Variables are represented by PV.
mapping fields showing how page variables are displayed

04 Page Variable Use Case

You can use a page variable to pass information from one page to another. For example, if you want users to be able to create a new contact that will be saved to Salesforce.

The setup: A power table was inserted into the first project page that displays account information, if the user clicks the Create new contact option, they are redirected to a second page where they can enter their account information.
example of project pages

When checking the debug mode, you can see that the Account ID was successfully passed through. This means that the details captured in the form will be saved to the associated Account ID.
debug project - listed page variables

05 Got Feedback?

Additional Resources