# Enable view profile based on user profile switch

**URL:** <https://community.glideapps.com/t/enable-view-profile-based-on-user-profile-switch/17877>\
**Category:** Ask for Help\
**Created:** [November 3, 2020, 2:00am UTC](https://community.glideapps.com/t/enable-view-profile-based-on-user-profile-switch/17877 "2020-11-03T02:00:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Caruso](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexandre_caruso/32/6240_2.png) [@Alexandre\_Caruso](https://community.glideapps.com/u/Alexandre_Caruso)\
**Post date:** [November 3, 2020, 2:00am UTC](https://community.glideapps.com/t/enable-view-profile-based-on-user-profile-switch/17877/1 "2020-11-03T02:00:12Z")

</div>

On user profile I added a switch objetive which means that other user could view the profile of this user.  
on another tab this user can add many records. if someone click to detail, could view his profile if the switch is on, but if it´s not, another user couldn´t view the profile or who added that records.

Got it? I’m trying to study relations. Is that way? Thx in advance

---

<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:** [November 3, 2020, 2:49am UTC](https://community.glideapps.com/t/enable-view-profile-based-on-user-profile-switch/17877/2 "2020-11-03T02:49:13Z")

</div>

I assume you’re linking to the creator’s profile using a relation/inline list in the “records” page.

What you can do is make a relation of the creator’s email back to the user’s profile sheet, make it a single match, bring over the boolean value of the “switch”.

If it’s true, you show an inline list with a “view details” action.

If it’s not true, you show an inline list with a “none” action.

That way, people can still now who add the record, but the profile visibility is still respected.

---

<div class="post-metadata">

**Author:** ![Alexandre\_Caruso](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexandre_caruso/32/6240_2.png) [@Alexandre\_Caruso](https://community.glideapps.com/u/Alexandre_Caruso)\
**Post date:** [November 3, 2020, 3:00am UTC](https://community.glideapps.com/t/enable-view-profile-based-on-user-profile-switch/17877/3 "2020-11-03T03:00:29Z")

</div>

> [@ThinhDinh](#):
>
> hat you can do is make a relation of the creator’s email back to the user’s profile sheet, make it a single match, bring over the boolean value of the “switch”.

Thx so much my friend! I’m trying to do it, but for some reason it´s not working.  
I’m still investigating what´s going on…hahaha

---

<div class="post-metadata">

**Author:** ![Alexandre\_Caruso](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexandre_caruso/32/6240_2.png) [@Alexandre\_Caruso](https://community.glideapps.com/u/Alexandre_Caruso)\
**Post date:** [November 3, 2020, 3:11am UTC](https://community.glideapps.com/t/enable-view-profile-based-on-user-profile-switch/17877/4 "2020-11-03T03:11:21Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/1/125e7231dfa7fc02afac40c7177cb448130f59b3.png)

I’m not understading because everything is fine, but when I select “Nome Completo” (Complete Name) is showing the user logged and not the owner of row (“DonoDoBoleto”)

---

<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:** [November 3, 2020, 3:34am UTC](https://community.glideapps.com/t/enable-view-profile-based-on-user-profile-switch/17877/5 "2020-11-03T03:34:40Z")

</div>

Can you explain what you’re trying to get back from the screenshot above? Thank you.

---

<div class="post-metadata">

**Author:** ![Alexandre\_Caruso](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexandre_caruso/32/6240_2.png) [@Alexandre\_Caruso](https://community.glideapps.com/u/Alexandre_Caruso)\
**Post date:** [November 3, 2020, 3:39am UTC](https://community.glideapps.com/t/enable-view-profile-based-on-user-profile-switch/17877/6 "2020-11-03T03:39:15Z")

</div>

yeap. the screen shows that I’m using Relation Column. I expected “DonoDoBoleto” the owner of record should be the same when I use Email checked. But It not working. The emails is showing the user logged.

recap: When I used Relation component on the detail screen it´s working. But I 'd like to show or not if this user has switch on. But it´s not working.

I guess I’m not right, because this User menu is not related to “Relation Column” right?

---

<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:** [November 3, 2020, 3:49am UTC](https://community.glideapps.com/t/enable-view-profile-based-on-user-profile-switch/17877/7 "2020-11-03T03:49:40Z")

</div>

So in the relation/inline list you want to show the switch value?

---

<div class="post-metadata">

**Author:** ![Alexandre\_Caruso](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexandre_caruso/32/6240_2.png) [@Alexandre\_Caruso](https://community.glideapps.com/u/Alexandre_Caruso)\
**Post date:** [November 3, 2020, 3:54am UTC](https://community.glideapps.com/t/enable-view-profile-based-on-user-profile-switch/17877/8 "2020-11-03T03:54:08Z")

</div>

Man! I guess I got it! I created another column LOOKUP taking that field ENABLED PROFILE! (PERFIL\_VISIVEL) [image|423x153](https://community.glideapps.com/uploads/short-url/w0ksC7eDYCWsdSZC8sC0tVpfqFa.png)  
now I set visibility like this!  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/f/f5385467ff3a8e58060a62f465425c58f3058004.png)
