Page values disappear when move from page A to page B (multipage)

I have 2 pages
Page1 and Page2
i have simple form in Page 1 and i edited the form and once i move from page1 to page2 and come back to page1 i am loosing the data . how do i restore the data

@retool_dev @retoolers.io :handshake: Discussion :speech_balloon: Workflows multi-page bug component @kietay @everett_smith @Darren @ Darya_Verzhbinsky @retool_team @ChiEn @Chris_Cheasty @Christopher_R

1 Like

@ChiEn any update please

Hey there @keven, welcome back to the Community, happy to help! What you’re seeing is expected behavior in Retool multipage apps since form state does not automatically persist when navigating between pages.

If you’d like the data to be preserved, you have a few options. Here’s a helpful resource to get you started: Store temporary data with variables and localStorage

You can store data temporarily instead of writing changes back to a data source. There are three methods available:

  1. Variables: Temporarily store data within the app.
  2. localStorage: Temporarily store data in the customer's browser.
  3. URL query strings: Temporarily store data in the URL.

Hope this is helpful! Let me know if you have any questions :raised_hands:

2 Likes

Its not state about the data should retain to the browser

or

lets a I have 2 pages and with in one page i have response from rest api call that is dialpyed (accessing the data from the global variable)

now moving from one page A and edited something in A and move toto another page B and comeback to PAGE A edited values are diappered

What’s your use case here? Also, which component were you editing in when this happened?

listview ets a I have 2 pages and with in one page i have response from rest api call that is dialpyed (accessing the data from the global variable)

now moving from one page A and edited something in A and move toto another page B and comeback to PAGE A edited values are diappered

@ChiEn any update?

Hey, can you share a screenshot or a Loom video showing what you are trying to edit and how it disappears when you move to page 2?

var a = 10 Globale
page 1 a =20 click agint a=10
page2 click

Can you please share a screenshot or a Loom video so I can get a better look at the components you’re using?

Orginsation restriuctions

Organization restrictions? I understand.

To confirm, you’re pulling data from a REST API into a ListView on page 1. It shows up at first, but after you navigate to page 2 and return to page 1, the ListView is empty. Is that correct?

If you can, please share screenshots of your setup and the issue. You can blur or block out any sensitive details. Rest assured, we won’t use your data in any way.

Data is there but the not the edit one

example: Test (original value) and i edited as Testpage1 this edited value is gone and coming back to Test

Hey @Keven, what you’re seeing is expected behavior in Retool multipage apps since form state does not automatically persist when navigating between pages.

Here’s a step by step way to preserve your data:

  1. Create a variable in global scope (for example, variable1). This way, the value will persist across different pages.
  2. In your API query, add an Event handler. On success, set the value of variable1, then use it in your value column when querying.

  1. Bind your Text Input component to the variable:
    • Set the Default value to {{ variable1.value }}
    • Add an Event handler:
      • Event: Change
      • Action: Set variable
      • Value: {{ textInput1.value }} (this keeps variable1 updated whenever you enter a new value)

Now, try typing values next to your API data. As shown in my gif below, when you navigate to page 2 and then back to page 1, your edited data will still be there.

this-chrome-capture-2025-09-02

Let me know if this is helpful for you! If you ever need live debugging help, we have an upcoming Office Hours session Sept 4 at 2pm EST where you can get help directly from the Retool team and other developers. We host these Office Hours twice a week! :raised_hands:

Hey @Keven,

I completely understand the issue you’re facing. I actually came across a very similar case recently and was able to solve it. You can check out the detailed discussion and solution here: Table rows not being default selected until I change page and come back.

The steps outlined there should help you fix the problem in your setup as well. If you still find it unclear or run into any trouble applying the solution, feel free to share a bit more about your exact use case or the setup of your table. I’d be happy to walk you through the process step by step and make sure it works smoothly for you.

Hello again @Keven, just checking in to see how you are doing. If you still need help, I’d recommend joining us for Office Hours so we can help you out. We have an upcoming Office Hours session today (Sept 9) at 2pm EST, where you can get help live from the Retool team and other developers. We host these Office Hours twice a week! :raised_hands:

thank you

thsnk you

1 Like