Hello all,
I’m having trouble understanding a problem where my checkbox won’t stay checked after I leave/reload a page. I noticed another topic that addressed this but still can’t figure it out.
The idea is that a user checks the checkbox to indicate that a location is Live (a yes/no field in its data type that stores information about the location). After that it should stay checked until the user unchecks it.
To get this to work I stored a custom state in the text box containing the location name that is called Live Status, seen here.
For the workflow, when the checkbox is clicked it changes the custom state’s value to “yes” when it’s checked and “no” when it’s unchecked.
(1)
(2)
Here is the setup for my checkbox. It uses a dynamic status based on the yes/no value from the custom state.
So, it works as expected when I’m on the page and using it (changes live status to yes/no). You can see it here using the debugger.
When I leave the page and come back, though, everything has reset (live status changes to no and checkbox unchecks itself). This happens even if I change the custom state to have no default value.
One other route that I can think of would be to do a search for the actual field in the data type that’s getting changed to yes/no, but I’m not really sure what to type in to get that to happen (you can see the query is red) with a list of things.
If anyone has experience with this or would be willing to help teach me how to get it right that would be much appreciated! I just don’t understand why it doesn’t work. Does the custom state not get saved after leaving the page?