An alternative way which avoids variables is to load a table for each object you want to control ...
Load * inline [
... then create your text box with a conditional show (TX01=1 for my example). Your button then just needs an action which toggle selects on the field TX01 for value 1. You can also toggle the button text like this ...