ToolJet/docs/versioned_docs/version-2.0.0/actions/set-page-var.md
2023-02-16 12:11:20 +05:30

18 lines
629 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).
:::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/set-page-var.png" alt="ToolJet - Action reference - Switch page" width="600"/>
</div>