I’m currently working on an app with multiple containers (e.g., “Level_Start,” “Level_Intro”). My goal is that when clicking a button, the “Level_Intro” container becomes visible while “Level_Start” is hidden.
Here’s what I’ve done so far:
Created a global variable currentPage in the data section (default value: "Level_Start").
Set up a button workflow that changes the variable currentPage to "Level_Intro."
Used a formula to control the visibility of containers:
currentPage === "Level_Intro"
The problem:
The button doesn’t update the view. “Level_Intro” does not appear, and “Level_Start” stays visible.
Questions:
Do I need to configure anything additional for the containers?
Is my approach using the currentPage variable correct, or is there a better way to achieve this?
How can I debug this issue effectively?
I’d appreciate any tips or advice. Thanks in advance!
Thanks for your feedback! I’m just getting back to the project today, so I appreciate your patience.
I’ve reviewed your suggestions and will double-check my conditional rendering settings and button workflow. I’ll also make sure the variable update is case-sensitive and not affected by the toggle logic.
If I run into any issues, I’ll update you. Thanks again for the help!