# Is it possible to hide collection using button block action

**URL:** <https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566>\
**Category:** Ask for Help\
**Created:** [August 9, 2024, 8:26pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566 "2024-08-09T20:26:08Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![LMO](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@LMO](https://community.glideapps.com/u/LMO)\
**Post date:** [August 9, 2024, 8:26pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/1 "2024-08-09T20:26:08Z")

</div>

I have 3 collections and a button block with 3 buttons. I would like to either show a collection on a new tab or hide the 2 other collections from view. Has anyone done this before?  
Cheers!

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [August 9, 2024, 9:58pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/2 "2024-08-09T21:58:02Z")

</div>

hi. One way to do it is to use custom actions with conditions for your buttons and set column values of your choice (eg. set a boolean column to true or false), then apply visibility conditions on your collections according to the column values.

> **[Introduction to Actions | Glide Docs](https://www.glideapps.com/docs/automation/actions)**
>
> Create custom actions for your apps.

---

<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:** [August 10, 2024, 12:14am UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/3 "2024-08-10T00:14:09Z")

</div>

You can use a choice component to write values to a user-specific column, and drive the visibility of those collections based on the chosen value.

---

<div class="post-metadata">

**Author:** ![LMO](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@LMO](https://community.glideapps.com/u/LMO)\
**Post date:** [August 14, 2024, 6:49pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/4 "2024-08-14T18:49:24Z")

</div>

Thanks! I’m just a few days in with working with Glide so just getting my footing at the moment, but I am trying to work on the options you both suggested. The collections showing/hiding are my second choice for displaying the screen. I would prefer to just switch to the details tab to show the related data but the problem is that I don’t know how to relate the data on the tab to the one I switched from. Hope that makes sense.  
E.g.  
Project tab - shows a collection of all sub-projects. when selecting a project and selecting a different tab:  
Project tasks tab - should show the tasks for the project selected in the project tab.  
Project budget tab - should show budget items for the project selected in the project tab.

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [August 14, 2024, 7:59pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/5 "2024-08-14T19:59:04Z")

</div>

Relations and other computed columns allow us to access information from other data tables that may not be directly attached to our screen.  
You can read more on them here:

> **[Computed Columns | Glide Docs](https://www.glideapps.com/docs/automation/computed-columns)**
>
> Transform basic data in powerful new ways.

And there are some useful videos on youtube for guidance.

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/8/f84c3c9dbdc5673a625e767ad6035500465c454e.jpeg "Introduction to Glide | Part 7: Relations") ](https://www.youtube.com/watch?v=f76disbLRzQ)

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/c/8cf0c5551f6ee40eeb753a899ba63b9cda2aed69.jpeg "Glide 101: Relation Column") ](https://www.youtube.com/watch?v=ecJy1hvfb-U)

---

<div class="post-metadata">

**Author:** ![LMO](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@LMO](https://community.glideapps.com/u/LMO)\
**Post date:** [August 14, 2024, 8:02pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/6 "2024-08-14T20:02:19Z")

</div>

Thanks, I’ve watched the relations video multiple times and yes I am able to get the details back, but it will show them on the same tab. I’d like to change the tab to view the details. Hope that clarifies what I’m trying to do.  
Cheers!

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [August 14, 2024, 8:06pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/7 "2024-08-14T20:06:54Z")

</div>

Is it that you would like to navigate directly to the detail screens? Can you show some screenshots of what you’re hoping for?

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [August 15, 2024, 4:05am UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/8 "2024-08-15T04:05:36Z")

</div>

It’s hard to imagine what you want. It would be better if you could provide a visualization of your explanation. I assume you want to achieve something similar to the following thread:

> [@Side Navigation: Possible? If so, how to achieve it?](https://community.glideapps.com/t/side-navigation-possible-if-so-how-to-achieve-it/75485/2):
>
> As one of the paths you can take: Create 2 USC columns in the user table: a “Category” column and an “Items” column. Image 1: Go back to your “view items” tab. Use the Collection component that functions as a button to which you can assign the action of setting the column value to the Category column. Set its visibility to be visible if the Category column is empty. Image 2: Add containers according to the number of menu items you have and set their visibility according to the category and men…

---

<div class="post-metadata">

**Author:** ![LMO](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@LMO](https://community.glideapps.com/u/LMO)\
**Post date:** [August 20, 2024, 4:57pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/9 "2024-08-20T16:57:29Z")

</div>

Hope this helps. As the user clicks on the links, the tab changes with their selection.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/c/0c79839ca176a42357e32bafe12415e84faa3bfe.png)

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [August 20, 2024, 5:38pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/10 "2024-08-20T17:38:59Z")

</div>

ok. I think you are just asking about showing new screens for the data you want. You can create actions for clicking on every project or item to do what you want there.

Sub-Project 1 \> show new screen \> main screen or current screen \> navigate directly to Sub project 1 items

Then set up navigation in a similar way for budget items or tasks.

> **[Screen Types | Glide Docs](https://www.glideapps.com/docs/getting-started/intro-to-layout/screen-types)**
>
> Understand the different types of screens.

For it to be successful in the way you imagine, you just need your data to be organized properly within your tables so that you can extract what you need at each level. @ThinhDinh would have shared this video on the subject [https://www.youtube.com/watch?v=jgUeOjImOOw](https://www.youtube.com/watch?v=jgUeOjImOOw)

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [August 20, 2024, 6:00pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/11 "2024-08-20T18:00:24Z")

</div>

In the editor, from the left-hand-side you can select the component that you want your user to interact with, and in the settings on the right, you can add the action you need - in this case it would be: navigation \> show new screen.  
Click on the item on your screen to trigger the action and edit the new screen the way you want it.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/6/0672f6fd9f3c06afccf42b68185b81b41e7b19c5.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:** [August 20, 2024, 11:10pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/12 "2024-08-20T23:10:14Z")

</div>

That is a weird type of navigation for me if you want them on their own tabs. What if I go in and start from scratch, what would I see when I click the Sub-Project, Budget and Tasks tabs? Why don’t you do it on the same tab?

---

<div class="post-metadata">

**Author:** ![LMO](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@LMO](https://community.glideapps.com/u/LMO)\
**Post date:** [August 23, 2024, 7:42pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/13 "2024-08-23T19:42:51Z")

</div>

I think I understand what you’re suggesting. I was envisioning the user being able to select a sub project and then using the tabs to see the budget and tasks for that particular project, sort of like an excel workbook with multiple tabs. perhaps that’s not how Glide works and I need to get more familiar with showing a new screen…

---

<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:** [August 24, 2024, 12:02am UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/14 "2024-08-24T00:02:56Z")

</div>

I would suggest you going through Glide University to get a better understanding of Glide.

> **[University](https://learn.glideapps.com/)**

I still think keeping them all like what Sekayi suggested makes for the best user experience.

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [August 24, 2024, 8:16pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/15 "2024-08-24T20:16:23Z")

</div>

maybe you can vote here to push forward a similar feature that was requested: [Tabbed Container](https://community.glideapps.com/t/tabbed-container/64629)

---

<div class="post-metadata">

**Author:** ![LMO](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@LMO](https://community.glideapps.com/u/LMO)\
**Post date:** [August 26, 2024, 7:36pm UTC](https://community.glideapps.com/t/is-it-possible-to-hide-collection-using-button-block-action/75566/16 "2024-08-26T19:36:02Z")

</div>

Just voted! Thanks Sekayi\_Liburd, that’s exactly what I was looking for! Too bad it doesn’t exist currently. Thanks too for your kind responses for a newbie!
