Hi there, @rowena1… there is a ton of good content out there on custom states, so do some googling and check that stuff out because understanding custom states is an important part of building apps on Bubble.
The above being said, here is a simple example of what you described. I added a custom state (yes/no) called button deactivated
to the index page (you can add the state to any page/element you want, of course).
You change the custom state using this workflow action (ignore that I am using the Page is loaded workflow… it’s just for the example).
The workflow action would look like this…
Finally, you would add a condition to the button that looks like the following, and that should produce the desired result of having the button become unclickable when the custom state is set to a certain value.
Hope this helps.
Best…
Mike