Preserve checkbox state during scene transition

Hi Folks

I need to preserve the checked state of checkboxes during scene transition and I would like to rack your brains about possible solutions.

Basically, I need to come up with a way that checkboxes stay checked when user transitions between scenes. Currently, when I go back to the previous or next scene, checkboxes are reset.

I could use LocalStorage but maybe there is a simpler solution.

I cannot turn these checkboxes into a persistent symbol as the checkbox options will be different in each scene.

Thanks for your help and I’m looking forward to seeing what you folks come up with.

Checkboxes.hype.zip (36.7 KB)

Greg

You could do a persistent symbol, but just use a different persistent symbol per scene.

When you create a persistent symbol, you have the option to add only to the current scene. (or if you hit the wrong thing you can remove it on all the other scenes and then if you enter the symbol and go to the symbol inspector, then you can uncheck "Automatically add to all scenes").

Otherwise I would recommend LocalStorage :smiley: .

1 Like

Thanks Jonathan.

Looks like the persistent symbol added only to each of the scenes is the best approach!