# Button action and visibility condition works differently on the live app and in the builder

**URL:** <https://community.glideapps.com/t/button-action-and-visibility-condition-works-differently-on-the-live-app-and-in-the-builder/42439>\
**Category:** Ask for Help\
**Created:** [May 27, 2022, 2:46pm UTC](https://community.glideapps.com/t/button-action-and-visibility-condition-works-differently-on-the-live-app-and-in-the-builder/42439 "2022-05-27T14:46:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![creaters](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/creaters/32/39116_2.png) [@creaters](https://community.glideapps.com/u/creaters)\
**Post date:** [May 27, 2022, 2:46pm UTC](https://community.glideapps.com/t/button-action-and-visibility-condition-works-differently-on-the-live-app-and-in-the-builder/42439/1 "2022-05-27T14:46:57Z")

</div>

Hell dear Gliders!

I have an issue. And don’t know how to resolve it. Please, help!

1️⃣ I design simple _`Onboarding tab`_ based on @Robert_Petitto tutorial (thank You Robert!) and two “main” tabs - `Home Page` and `My Profile`.  
2️⃣ Each one has a _visibility condition_ - the `Onboarding` has “value is empty” and the `Home Page` and the `My Profile` has “value is not empty”.  
3️⃣ The button on `Onboarding` tab has two steps in _action_ (1. Set column values, 2. Go to Tab - My Profile) and should _link_ directly to the `My Profile` tab, _show_ other tabs and _hide_ the `Onboarding` tab…

And that’s where shoe pinches… 😃

❓ **It only works in the builder / editor but doesn’t on the live app.** ❓  
Why?

👀 Watch the videoscreen for both - builder and live app.  
Recorded with Loom

I will be grateful for any tip or support 🙂

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 27, 2022, 10:57pm UTC](https://community.glideapps.com/t/button-action-and-visibility-condition-works-differently-on-the-live-app-and-in-the-builder/42439/2 "2022-05-27T22:57:11Z")

</div>

I think the reason here is:

- My Profile was not a visible tab before the click.

- Your click in the real app happens before Glide can recognize that My Profile is now visible and navigate to it. The second action likely failed before the tab turns visible.

---

<div class="post-metadata">

**Author:** ![creaters](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/creaters/32/39116_2.png) [@creaters](https://community.glideapps.com/u/creaters)\
**Post date:** [May 28, 2022, 10:04am UTC](https://community.glideapps.com/t/button-action-and-visibility-condition-works-differently-on-the-live-app-and-in-the-builder/42439/3 "2022-05-28T10:04:44Z")

</div>

You are right @ThinhDinh , but still - there is a logic order in a two-step action…

1. Firstly - “set the column value” - it should “tell” Glide to show hidden tabs
2. Secondly - “go to tab” - navigate to My Profile (which already have been shown by the first action step logic).

So it seems like it is some kind of lag, bug, or i don’t know… 🙃

My Profile has to be hidden because of the UX of onboarding and after completing it - it should reveal by action under the button.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 28, 2022, 11:34am UTC](https://community.glideapps.com/t/button-action-and-visibility-condition-works-differently-on-the-live-app-and-in-the-builder/42439/4 "2022-05-28T11:34:38Z")

</div>

I mean there’s a sequence, but I don’t think the second action can take into account the new visibility condition fast enough in your case. The easiest fix is to move My Profile to be the first tab, but I assume that is not what you want.

---

<div class="post-metadata">

**Author:** ![creaters](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/creaters/32/39116_2.png) [@creaters](https://community.glideapps.com/u/creaters)\
**Post date:** [May 29, 2022, 11:47am UTC](https://community.glideapps.com/t/button-action-and-visibility-condition-works-differently-on-the-live-app-and-in-the-builder/42439/5 "2022-05-29T11:47:31Z")

</div>

I resolved it! 😁

It was tricky, but finally is working.

1. I created another column for second visibility condition - “onboarding-hide”
2. I changed Onboarding tab visbility condition from “onboarding-complete” to “onboarding-hide” is empty.
3. Then i created last step in action for this.

p.s. There are two actions “Go Back” because of additional two onboarding screens in the process. It was very important. Without those steps whole thing didn’t work.

🤩

![Zrzut ekranu 2022-05-29 o 13.44.40](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/b/4b3e7bbcf5a29481be654ec5b18c74caa59a15b4.png)  
 ![Zrzut ekranu 2022-05-29 o 13.45.00](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/5/957d97ae5241f42de8c0959963312725abede5bf.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [May 30, 2022, 11:48am UTC](https://community.glideapps.com/t/button-action-and-visibility-condition-works-differently-on-the-live-app-and-in-the-builder/42439/6 "2022-05-30T11:48:12Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
