# Hide Elements When User Not Signed In

**URL:** <https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723>\
**Category:** Ask for Help\
**Created:** [February 18, 2020, 7:51pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723 "2020-02-18T19:51:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![S8ATWORK](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@S8ATWORK](https://community.glideapps.com/u/S8ATWORK)\
**Post date:** [February 18, 2020, 7:51pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/1 "2020-02-18T19:51:53Z")

</div>

I’m having trouble hiding elements from none signed in users.  
Trying to display a create profile on the “Home” tab if the isn’t signed in.  
I can hide elements on the “Profile” tab but not the home tab. No option to only display for signed in user.

Any help much appreciated.

 ![Screenshot 2020-02-18 at 19.47.20](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/b/b7acb10838a17bc8a4084011764bd2a4ba3a06b9.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 18, 2020, 8:16pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/2 "2020-02-18T20:16:23Z")

</div>

Stop me if I’m wrong, @Jeff_Hager, but I think you need to first create a column in your Home tab and call it something like “NoProfile” and set it to false. On your player Profile Tab, have an if then else column display “false” for everyone that doesn’t have \_\_\_\_ filled out (email especially)…otherwise “true”. Back in the Home tab, do a relation (multiple) between the NoProfile column and true/false Profile column. Also in the Home tab create a lookup column that references the email in the relation column. Now you can show/hide components based on whether or not users have created a profile to your liking by checking for the true/false AND isSignedInUser.

---

<div class="post-metadata">

**Author:** ![S8ATWORK](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@S8ATWORK](https://community.glideapps.com/u/S8ATWORK)\
**Post date:** [February 19, 2020, 9:23am UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/3 "2020-02-19T09:23:45Z")

</div>

This doesn’t seem to have worked.  
I created a column in the google sheet on the home tab for “NoProfile” with a false set check box.  
Then added an if then else to the profile tab in the data section of glide, to show false for everyone without an email address.  
In the home tab in the glide data I added a relation multiple column between NOProfile column and the true false profile column.  
Then created a lookup column in the home tab in glide that referenced the email in the relation column.

I’m not getting any of those columns on the home tab fill with data, and there’s no front end effect in the app when the visibility filters are applied - It doesn’t react to which email address I’m previewing as.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 19, 2020, 11:34am UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/4 "2020-02-19T11:34:06Z")

</div>

Ok. I was going to work on this today. I’ll reply when I’ve got something working and I’ll provide video instructions.

---

<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 19, 2020, 11:52am UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/5 "2020-02-19T11:52:13Z")

</div>

I guess I would take a similar but simpler approach. Create a profile column and fill it with the word ‘profile’ instead of true or false. Do the same in the profile sheet. Create a relation from the home tab link the two values and create a lookup column to get a list of emails. You can use that lookup to show it hide components if a profile record exists for that signed in user.

---

<div class="post-metadata">

**Author:** ![S8ATWORK](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@S8ATWORK](https://community.glideapps.com/u/S8ATWORK)\
**Post date:** [February 19, 2020, 2:37pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/6 "2020-02-19T14:37:41Z")

</div>

Works but seems to only work with the first profile and email in the first row rather that searching all of them.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 19, 2020, 3:10pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/7 "2020-02-19T15:10:18Z")

</div>

Just created a video. I’ll post it below once it’s finished uploading to YouTube. Stay tuned!

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 19, 2020, 3:37pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/8 "2020-02-19T15:37:14Z")

</div>

As promised:

---

<div class="post-metadata">

**Author:** ![S8ATWORK](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@S8ATWORK](https://community.glideapps.com/u/S8ATWORK)\
**Post date:** [February 19, 2020, 4:42pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/9 "2020-02-19T16:42:16Z")

</div>

Works but seems to only work with the first profile and email in the first row rather that searching all of them.

Would you be able to give a more detailed breakdown so I can make sure I’m doing everything correctly.

---

<div class="post-metadata">

**Author:** ![S8ATWORK](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@S8ATWORK](https://community.glideapps.com/u/S8ATWORK)\
**Post date:** [February 19, 2020, 4:43pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/10 "2020-02-19T16:43:13Z")

</div>

Thanks Robert, much appreciate your help. Although this is a little over complicated for my app. Trying to keep things quite simple.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 19, 2020, 4:55pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/11 "2020-02-19T16:55:15Z")

</div>

For you, what constitutes “having a profile”?

---

<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 21, 2020, 2:04pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/12 "2020-02-21T14:04:18Z")

</div>

Do you have any screenshots of what’s not working? It’s a should be a pretty simple process, but it would help if I could see what you have for your relations and lookups so far.

---

<div class="post-metadata">

**Author:** ![Sean\_Pritzkau](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sean_pritzkau/32/4943_2.png) [@Sean\_Pritzkau](https://community.glideapps.com/u/Sean_Pritzkau)\
**Post date:** [April 5, 2020, 10:22pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/13 "2020-04-05T22:22:48Z")

</div>

@Robert_Petitto – spent a while with this video and can’t figure out how you created a relation between your players (customers in my case) and other pages in your app.

Would you mind sharing?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [April 5, 2020, 11:14pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/14 "2020-04-05T23:14:34Z")

</div>

Not at all!

1. In the user profile sheet, create an if then column (I name mine “hasProfile”) that will result in “true” when your desired user fields are not empty.
2. In the other sheets create a template column (I name mine “profileTrue”), and give it the static value “true”.
3. Then in these sheets, create a multiple relation (I call mine rel\_hasProfile) to the hasProfile column in the profile sheet.
4. Do a lookup to grab the users’ email addresses (I call it profileEmails).
5. In your layout view, create visibility filters on components where “profileEmails is (or is not) signed in user”

Is signed in user? Show your app components  
Is not signed in user? Show text/form buttons/etc to get your users to fill out their profile.

---

<div class="post-metadata">

**Author:** ![Sean\_Pritzkau](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sean_pritzkau/32/4943_2.png) [@Sean\_Pritzkau](https://community.glideapps.com/u/Sean_Pritzkau)\
**Post date:** [April 5, 2020, 11:20pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/15 "2020-04-05T23:20:31Z")

</div>

Thank you so much! I think #1 is where I got stuck. Your process worked for me.

Do you think this would work for phone numbers in place of emails? So instead of looking up an email, looking up if a column has a phone number.

Then hiding components if the phone number column is empty / showing components if the phone number column is filled.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [April 5, 2020, 11:33pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/16 "2020-04-05T23:33:25Z")

</div>

No, I don’t think so. Until Glide comes out with user specific data, Glide can’t filter out users by phone number…only email

---

<div class="post-metadata">

**Author:** ![Sean\_Pritzkau](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sean_pritzkau/32/4943_2.png) [@Sean\_Pritzkau](https://community.glideapps.com/u/Sean_Pritzkau)\
**Post date:** [April 5, 2020, 11:37pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/17 "2020-04-05T23:37:51Z")

</div>

Hm , I understand. I’m looking to filter people out of content until they’ve submitted a phone number. I I thought I might be able to filter people by their email address to lookup if they’ve submitted a phone number, and then show/hide components. This seems to be the closet I can get!

Thanks so much for your help.

---

<div class="post-metadata">

**Author:** ![Sean\_Pritzkau](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sean_pritzkau/32/4943_2.png) [@Sean\_Pritzkau](https://community.glideapps.com/u/Sean_Pritzkau)\
**Post date:** [April 5, 2020, 11:46pm UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/18 "2020-04-05T23:46:53Z")

</div>

Quick follow-up question: If privacy settings are set to Public with Email, aren’t these already hidden?

Perhaps there is another way to login that I’m missing.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [April 6, 2020, 2:28am UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/19 "2020-04-06T02:28:53Z")

</div>

You’re correct. You can make one of the conditions of the hasProfile column that PhoneNumber is not empty…but the component has to rely on email is signed in user to filter.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [April 6, 2020, 2:29am UTC](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723/20 "2020-04-06T02:29:48Z")

</div>

Aren’t what already hidden? The Email addresses?

[Next page](https://community.glideapps.com/t/hide-elements-when-user-not-signed-in/4723.md?page=2)
