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
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.
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.
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:
Create a variable in global scope (for example, variable1). This way, the value will persist across different pages.
In your API query, add an Event handler. On success, set the value of variable1, then use it in your value column when querying.
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.
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!
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!