Keep buttons in same state after refresh

Hello, im new to Bubble, but wanted to see if i can get some help…

I want to know if there was a way to keep my buttons in the same state after the page refreshes.

I am trying to have a button un-clickable until another one is clicked, but when you refresh the page it resets all the buttons making them all clickable again…

is there a way to keep them in the current state even after a page refresh?

I think you may have to write the button state to the app database.

Use URL parameters. When a button is clicked, choose to go to the current page and send URL parameters. With that, use the “Get data from page URL” conditionally.

How does one go about setting that?