Save switch button status when screen initialize

hi
i try to save Switch button status so if i switch on the button the screen should give me switch on status whenever screen initialize and vice versa

switch
Screenshot_20210806-173254
Screenshot_20210806-173321

suppose if not checked what should be saved in tinyDB??

Here I can see that in switch box you used text block but in the logic you used maths block …check that

You should do set label1.text to 1(maths block)

See an example

thanks a lot for ALL specially Dora …Solved
solved

2 Likes