Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 981 Bytes

sharing-data-across-pages.md

File metadata and controls

26 lines (16 loc) · 981 Bytes
description
The Appsmith platform allows us to share data across pages using URL query params & the browser's local storage.

Share data across pages

Sharing data via query params

Query params can be passed by adding the query params object to NavigateTo action. To do this click on the JS mode for Action and update it as follows.

{{navigateTo("PageName", {"param": "value"})}}

These can be consumed on the destination page with appsmith.URL.queryParams.param.

Click to expand

Sharing data via local storage

Key-value pairs can be stored within the local storage with the help of the StoreValue action. To do so pick the StoreValue action and provide the desired key and values. These can be consumed on the destination page with appsmith.store.key

Click to expand