ToolJet/docs/versioned_docs/version-2.6.0/actions/set-page-var.md
Shubhendra Singh Chauhan e012991a07
added docs v2.6 (#6439)
2023-05-17 15:34:38 +05:30

20 lines
785 B
Markdown

---
id: set-page-variable
title: Set page variable
---
Page variables can only be accessed within a page on which they are created, unlike normal variables that can be accessed throughout the application.
Use this action to create a variable and assign a `value` to it in the [Multipage Apps](/docs/tutorial/pages).
Debounce field is empty by default, you can enter a numerical value to specify the time in milliseconds after which the action will be performed. ex: `300`
:::info
You can also trigger actions from the **JavaScript code**. Check it out [here](/docs/how-to/run-actions-from-runjs).
:::
<div style={{textAlign: 'center'}}>
<img className="screenshot-full" src="/img/actions/page/setpagevar2.png" alt="ToolJet - Action reference - Switch page" width="600"/>
</div>