# Conditional visibility working in editor, but not on app in phone/webpage (and vice versa)

**URL:** <https://community.glideapps.com/t/conditional-visibility-working-in-editor-but-not-on-app-in-phone-webpage-and-vice-versa/4226>\
**Category:** Report a Bug\
**Created:** [February 3, 2020, 5:38pm UTC](https://community.glideapps.com/t/conditional-visibility-working-in-editor-but-not-on-app-in-phone-webpage-and-vice-versa/4226 "2020-02-03T17:38:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apertur.co](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@apertur.co](https://community.glideapps.com/u/apertur.co)\
**Post date:** [February 3, 2020, 5:38pm UTC](https://community.glideapps.com/t/conditional-visibility-working-in-editor-but-not-on-app-in-phone-webpage-and-vice-versa/4226/1 "2020-02-03T17:38:59Z")

</div>

My app’s URL: [https://vlp-demo.glideapp.io/](https://vlp-demo.glideapp.io/)

I have a Separator component with conditional visibility (hides when switch is “on”, i.e., is visible when the value of the switch is not equal to TRUE). It seems to work fine in the app editor:

 ![Screenshot (82)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/f/f18c3fe0c1f48d8c23177a6a632767facf7af839.png)

But not on the app itself, whether on my phone:

 ![IMG_18191.PNG](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/c/c0a51e26af950fbf93f2bd10b4eccef923aa25ee.jpeg)

Or on a webpage:

 ![Screenshot (81)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/9/93c2c76893123914bfb29afb39b25646fa295239.png)

I’ve tried signing-out, reloading app and sheet, etc.

> > > More to it. When I flip the switch to show the separator (and the text below it), the condition _now_ works correctly on the app (phone & web), but not in the editor:

 ![IMG_18231.PNG](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/1/1acc71a0fa1d95a55df87df247cc8d085c01cef1.jpeg)

 ![Screenshot (83)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/1/1636269285305697e136e57e1a4af83651c149ba.png)

 ![Screenshot (84)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/5/516ecd53e73f79857cf021634ba18216bee31365.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [February 4, 2020, 1:00pm UTC](https://community.glideapps.com/t/conditional-visibility-working-in-editor-but-not-on-app-in-phone-webpage-and-vice-versa/4226/2 "2020-02-04T13:00:00Z")

</div>

I don’t know if you have been playing with the app since you posted this, but there seems to be a horizonal separator that hides when the switch is on and shows when the switch is off. You also seem to have lines above and below the rich text that don’t react to the switch. So in total it appears there are 3 separators, but when the switch is on, one disappears immediately, the text after disappears after a few moments, and what’s left is 2 lines above and below where the text used to be. Judging by the delay in the rich text hiding and showing, you must be controlling the rich text in the sheet instead of using visibility like you are on the separator. I’m not sure if you have horizonal markdown seperators in your rich text. On one hand, the layout seems wierd with the extra lines, but on the other hand, it’s reacting the way you described it should.

---

<div class="post-metadata">

**Author:** ![apertur.co](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@apertur.co](https://community.glideapps.com/u/apertur.co)\
**Post date:** [February 4, 2020, 4:19pm UTC](https://community.glideapps.com/t/conditional-visibility-working-in-editor-but-not-on-app-in-phone-webpage-and-vice-versa/4226/4 "2020-02-04T16:19:38Z")

</div>

Thanks for your help, @Jeff_Hager. I figured out the problem; an error on my end. Also changed the conditionality of the text to the component, not the sheet to speed things up. Thanks for that suggestion.

I’m going to request deleting this post, as it won’t be of use to anyone.
