Switch (button enabled)

Hello, I have a question, when you turn on the switch, the button should disappear, that is, turn off. And when the switch off button should appear, please help me implement it correctly?

First of all instead of using button.enabled to false/true use button.visible to true/false. Also if you want your app to remeber user's choice on/off on next run you should use tinydb

image

1 Like

thank you very much

1 Like

Hello Kenesbek

Think carefully about making buttons disappear. In the context of the App, is it User Friendly or will it confuse? If you think about physical devices, their buttons are on or off, they do not disappear -this is the behaviour people are used to.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.