Toggle switch persistance


#1

Hello,

I have a toggle switch in a page and when I select a state and move over to another page and come back to the toggle switch page, the selected doesn’t persist across and goes back to default state.

Is there any work around for this? I want the toggle switch to keep its state across the project and retain its value.


#2

Use a global variable to track the state as the user modifies it. Then with the OnLoad event of the switch, add conditional cases that check the value of the variable and set it accordingly.


unlisted #3