# How do I use a boolean to make a page visible or not?

**URL:** <https://community.glideapps.com/t/how-do-i-use-a-boolean-to-make-a-page-visible-or-not/39084>\
**Category:** Ask for Help\
**Created:** [February 28, 2022, 6:54pm UTC](https://community.glideapps.com/t/how-do-i-use-a-boolean-to-make-a-page-visible-or-not/39084 "2022-02-28T18:54:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Katelyn\_Alberts](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/katelyn_alberts/32/44421_2.png) [@Katelyn\_Alberts](https://community.glideapps.com/u/Katelyn_Alberts)\
**Post date:** [February 28, 2022, 6:54pm UTC](https://community.glideapps.com/t/how-do-i-use-a-boolean-to-make-a-page-visible-or-not/39084/1 "2022-02-28T18:54:26Z")

</div>

I want to have the ability to make profiles visible, or not, as an admin. Profiles are set up in details view and I added the boolean to my database and added a button to the front end to turn on or off but how do I make it so that it affects the entire profile and not just certain aspects of it?

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [February 28, 2022, 8:01pm UTC](https://community.glideapps.com/t/how-do-i-use-a-boolean-to-make-a-page-visible-or-not/39084/2 "2022-02-28T20:01:11Z")

</div>

Hi Katelyn,

You can add a visibility condition to the Profile Tab like boolean\>is\>false. Then when the Admin press the button the entire profile tab is hidden for that user.

Thank you

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [February 28, 2022, 8:26pm UTC](https://community.glideapps.com/t/how-do-i-use-a-boolean-to-make-a-page-visible-or-not/39084/3 "2022-02-28T20:26:22Z")

</div>

A Boolean has three states…

Empty, False, and True

In some cases it’s better to use “is not True” for Boolean logic. “Is not true” will cover you when the state of the Boolean is empty or false.

---

<div class="post-metadata">

**Author:** ![Katelyn\_Alberts](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/katelyn_alberts/32/44421_2.png) [@Katelyn\_Alberts](https://community.glideapps.com/u/Katelyn_Alberts)\
**Post date:** [February 28, 2022, 10:42pm UTC](https://community.glideapps.com/t/how-do-i-use-a-boolean-to-make-a-page-visible-or-not/39084/4 "2022-02-28T22:42:11Z")

</div>

If I am on someone’s profile like this. Where exactly is the profile tab? I am only seeing screen tabs on the left and then ‘general’ and ‘edit form’ on the right. There is no visibility tab for the whole page that i can find?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/7/474a5c02822e7aa1bb00342fd29b219e515c8b0f.jpeg)

---

<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:** [March 1, 2022, 12:10am UTC](https://community.glideapps.com/t/how-do-i-use-a-boolean-to-make-a-page-visible-or-not/39084/5 "2022-03-01T00:10:38Z")

</div>

> **[User Profiles](https://docs.glideapps.com/all/topics/security-and-user-data/user-profiles)**

What Dilon mentioned is the User Profiles table. You can have boolean columns in your profiles table and reference that in the tab visibility settings.

---

<div class="post-metadata">

**Author:** ![Katelyn\_Alberts](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/katelyn_alberts/32/44421_2.png) [@Katelyn\_Alberts](https://community.glideapps.com/u/Katelyn_Alberts)\
**Post date:** [March 1, 2022, 5:01am UTC](https://community.glideapps.com/t/how-do-i-use-a-boolean-to-make-a-page-visible-or-not/39084/6 "2022-03-01T05:01:03Z")

</div>

OK, i do have the boolean in my profiles table. I just still don’t know where to add the visibility condition? I included a picture above for reference. Do i need to include the condition on the list of profiles instead of the profile itself? So that it doesn’t show in a list so no one can click on it?

---

<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:** [March 1, 2022, 5:20am UTC](https://community.glideapps.com/t/how-do-i-use-a-boolean-to-make-a-page-visible-or-not/39084/7 "2022-03-01T05:20:38Z")

</div>

The screen shot you showed is a details view.  
You can hide individual components on that screen with visibility settings, but to hide the whole screen you’d have to go back one level and apply the settings there. If the previous screen is a list layout, then you could prevent users with “hidden” profiles from appearing in the list by filtering on that boolean value.

---

<div class="post-metadata">

**Author:** ![Katelyn\_Alberts](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/katelyn_alberts/32/44421_2.png) [@Katelyn\_Alberts](https://community.glideapps.com/u/Katelyn_Alberts)\
**Post date:** [March 1, 2022, 12:59pm UTC](https://community.glideapps.com/t/how-do-i-use-a-boolean-to-make-a-page-visible-or-not/39084/8 "2022-03-01T12:59:59Z")

</div>

Perfect that’s what i needed thank you

---

<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:** [March 15, 2022, 10:15pm UTC](https://community.glideapps.com/t/how-do-i-use-a-boolean-to-make-a-page-visible-or-not/39084/9 "2022-03-15T22:15:28Z")

</div>

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