How to preserve a custom state even after page refresh

I am getting a value from the user in a popup based on that value then the page gets populated. I am saving the value in popup’s custom state but when I refresh the page the state gets empty, is there any way to preserve the custom state or value that it remains same even after page refreshes, I don’t want to save the value in database as this value will be changed whenever the page is visited so there is no point this temporary value in database

Custom states are temporary by their nature, so either you set the state on page load, have a field on the user that stores the value, or a data-type that stores the value and populates it.

You can use local/session storage for this (not native Bubble functionality, but very simple to do with some custom Javascript or a plugin).

1 Like

Why not use url parameters for this?

1 Like

Yeah, Nice idea thanks, Navigating to the same page with URL parameter, Thanks it really helped

1 Like