# Conditional visibility not working

**URL:** <https://community.glideapps.com/t/conditional-visibility-not-working/31376>\
**Category:** Ask for Help\
**Created:** [September 4, 2021, 2:25pm UTC](https://community.glideapps.com/t/conditional-visibility-not-working/31376 "2021-09-04T14:25:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharath\_S](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sharath_s/32/28000_2.png) [@Sharath\_S](https://community.glideapps.com/u/Sharath_S)\
**Post date:** [September 4, 2021, 2:25pm UTC](https://community.glideapps.com/t/conditional-visibility-not-working/31376/1 "2021-09-04T14:25:54Z")

</div>

Conditional visibility not working in two areas

1. when I set the component to be hidden once the username is entered
2. other tabs only being visible after the username is entered

I think the condition is not working because of this bug?

![Screenshot (43)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/f/cf19ece7ab096422d3e6f8f14e8756b555fc01fb.png)

this is user profile sheet, why and how are there gaps in between?

edit : yes, IT is because of the gaps, I tested from the other normal accounts(in yellow) and the conditions work perfectly, but the empty ones(pink,all 4) does not follow!

![Screenshot (43)_LI](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/3/23f861352bbeef7c0954ece6c94550d6cbc02a71.jpeg)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 4, 2021, 2:46pm UTC](https://community.glideapps.com/t/conditional-visibility-not-working/31376/2 "2021-09-04T14:46:20Z")

</div>

It looks like you have duplicate rows in your User Profiles table.  
Do you have an action anywhere that adds a row to this table?  
If yes, get rid of it. It isn’t needed - a new row is automatically added to this table the first time a new user signs in.  
Fix that and I suspect that your visibility issue will be solved.

---

<div class="post-metadata">

**Author:** ![Sharath\_S](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sharath_s/32/28000_2.png) [@Sharath\_S](https://community.glideapps.com/u/Sharath_S)\
**Post date:** [September 4, 2021, 3:01pm UTC](https://community.glideapps.com/t/conditional-visibility-not-working/31376/3 "2021-09-04T15:01:02Z")

</div>

Hey, I’ve checked it, but I don’t think I set up anything like that or maybe I’m not searching in the right place(have never done it before)

![Screenshot (44)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/4/d480a80025a1d4a5057b021fcbc9e04f8ff0f15b.png)

 ![Screenshot (47)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/4/c4ec2d4675859e09bcc854fd36820683d373a482.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 4, 2021, 3:04pm UTC](https://community.glideapps.com/t/conditional-visibility-not-working/31376/4 "2021-09-04T15:04:03Z")

</div>

There’s your problem right there - “Show Form Screen”  
That is going to cause a duplicate row to be added.  
Just allow them to edit using the pencil icon, or build a screen with input components and a button with an action that does Set Column Values on the existing row.

---

<div class="post-metadata">

**Author:** ![Sharath\_S](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sharath_s/32/28000_2.png) [@Sharath\_S](https://community.glideapps.com/u/Sharath_S)\
**Post date:** [September 4, 2021, 5:31pm UTC](https://community.glideapps.com/t/conditional-visibility-not-working/31376/5 "2021-09-04T17:31:22Z")

</div>

Thanks a lot!! I got it done, the latter option!

So I got a doubt, can I still keep the edit option w the

> [@Darren\_Murphy](#):
>
> screen with input components and a button with an action that does Set Column Values on the existing row.

or would it create duplicate rows again?? because users being able to edit their names and images would be a nice feature to have.

cheers!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 4, 2021, 5:45pm UTC](https://community.glideapps.com/t/conditional-visibility-not-working/31376/6 "2021-09-04T17:45:23Z")

</div>

You could allow edit, but if you’ve already used the 2nd option, then that would be a bit redundant.

The important thing to remember is:

- Show Form: will result in a new row being added
- Edit/Set Columns: will update the values in the current row

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:50pm UTC](https://community.glideapps.com/t/conditional-visibility-not-working/31376/7 "2024-01-17T16:50:42Z")

</div>


