mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-22 22:17:55 +00:00
18 lines
629 B
Markdown
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>
|