# Button does not link to another container (Page does not update)

**URL:** <https://community.weweb.io/t/button-does-not-link-to-another-container-page-does-not-update/15505>\
**Category:** How do I?\
**Created:** [January 22, 2025, 8:28am UTC](https://community.weweb.io/t/button-does-not-link-to-another-container-page-does-not-update/15505 "2025-01-22T08:28:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xamax](https://avatars.discourse-cdn.com/v4/letter/x/45deac/32.png) [@Xamax](https://community.weweb.io/u/Xamax)\
**Post date:** [January 22, 2025, 8:28am UTC](https://community.weweb.io/t/button-does-not-link-to-another-container-page-does-not-update/15505/1 "2025-01-22T08:28:35Z")

</div>

Hello Community,

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!

---

<div class="post-metadata">

**Author:** ![Kawwl](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kawwl/32/14297_2.png) [@Kawwl](https://community.weweb.io/u/Kawwl)\
**Post date:** [January 22, 2025, 11:23am UTC](https://community.weweb.io/t/button-does-not-link-to-another-container-page-does-not-update/15505/2 "2025-01-22T11:23:42Z")

</div>

Hi, @Xamax

It sounds like you’re doing it right, but just to be sure here are the steps:

For both containers, i would bind it to to the conditional rendering here: (Conditon)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a46f2ac7602fa3a8aea39ea7c3e51d47bf7c9f66.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/57bc796b81cbcc033b3e5837bd122184c7d151cd.png)  
true means visible, false means hidden.

For the first container: currentPage = “level\_start”  
For the second container: currentPage = “level\_intro”

On the button workflow i would change variable: currentPage to “level\_intro”.

Remember this is case sensitive.

---

<div class="post-metadata">

**Author:** ![Xamax](https://avatars.discourse-cdn.com/v4/letter/x/45deac/32.png) [@Xamax](https://community.weweb.io/u/Xamax)\
**Post date:** [February 12, 2025, 9:41am UTC](https://community.weweb.io/t/button-does-not-link-to-another-container-page-does-not-update/15505/3 "2025-02-12T09:41:31Z")

</div>

Hi, @Kawwl

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!
