# Hide collection if empty

**URL:** <https://community.noloco.io/t/hide-collection-if-empty/597>\
**Category:** Feature Requests\
**Created:** [April 24, 2024, 11:31am UTC](https://community.noloco.io/t/hide-collection-if-empty/597 "2024-04-24T11:31:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![showcal\_rob](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/showcal_rob/32/342_2.png) [@showcal\_rob](https://community.noloco.io/u/showcal_rob)\
**Post date:** [April 24, 2024, 11:31am UTC](https://community.noloco.io/t/hide-collection-if-empty/597/1 "2024-04-24T11:31:14Z")

</div>

It would be amazing if you could choose to simply “hide on empty state” for a collection as a toggle

---

<div class="post-metadata">

**Author:** ![Tobias](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/tobias/32/252_2.png) [@Tobias](https://community.noloco.io/u/Tobias)\
**Post date:** [April 24, 2024, 4:17pm UTC](https://community.noloco.io/t/hide-collection-if-empty/597/2 "2024-04-24T16:17:40Z")

</div>

We have raised this somewhere before. With you 100%

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [April 24, 2024, 4:19pm UTC](https://community.noloco.io/t/hide-collection-if-empty/597/3 "2024-04-24T16:19:54Z")

</div>

Thanks for the suggestion @showcal_rob and @Tobias

While it’s often possible to do this with visibility rules, sometimes it’s not.

One thing I thought of, presuming if you have filters, you would still want to show the empty state if someone filters to something that returns no results?

---

<div class="post-metadata">

**Author:** ![showcal\_rob](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/showcal_rob/32/342_2.png) [@showcal\_rob](https://community.noloco.io/u/showcal_rob)\
**Post date:** [April 24, 2024, 5:53pm UTC](https://community.noloco.io/t/hide-collection-if-empty/597/4 "2024-04-24T17:53:05Z")

</div>

Correct, show empty state when user filtering, but when setting the actual filter for the block, toggle to hide if empty. Save on screen real estate etc

Best regards,  
Rob

---

<div class="post-metadata">

**Author:** ![Tobias](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/tobias/32/252_2.png) [@Tobias](https://community.noloco.io/u/Tobias)\
**Post date:** [April 25, 2024, 3:57am UTC](https://community.noloco.io/t/hide-collection-if-empty/597/5 "2024-04-25T03:57:13Z")

</div>

> [@darragh](#):
>
> Thanks for the suggestion @showcal_rob and @Tobias
> 
> While it’s often possible to do this with visibility rules, sometimes it’s not.
> 
> One thing I thought of, presuming if you have filters, you would still want to show the empty state if someone filters to something that returns no results?

Correct. Presuming there are records there to filter, I would need to be able to do that. But when the collection elements shows no records, whether by there being none or based of filter conditions showing none, the elelemt would be hidden.

---

<div class="post-metadata">

**Author:** ![Brandi\_Bullock](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/brandi_bullock/32/73_2.png) [@Brandi\_Bullock](https://community.noloco.io/u/Brandi_Bullock)\
**Post date:** [June 20, 2024, 2:58am UTC](https://community.noloco.io/t/hide-collection-if-empty/597/6 "2024-06-20T02:58:09Z")

</div>

Woo hoo!! We have the toggle! Thanks @darragh and team!

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/noloco/original/1X/59eea3576dd36a4619e07ba70a067f5473a6d288.png)

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [June 20, 2024, 4:57am UTC](https://community.noloco.io/t/hide-collection-if-empty/597/7 "2024-06-20T04:57:16Z")

</div>

Well Spotted @Brandi_Bullock !

We’ll be announcing this today actually!

Hope it works as expected

---

<div class="post-metadata">

**Author:** ![Brandi\_Bullock](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/brandi_bullock/32/73_2.png) [@Brandi\_Bullock](https://community.noloco.io/u/Brandi_Bullock)\
**Post date:** [June 20, 2024, 3:21pm UTC](https://community.noloco.io/t/hide-collection-if-empty/597/8 "2024-06-20T15:21:11Z")

</div>

I noticed it works great when the results from the relative filter are empty, but it does not work when I use a regular filter and the results are empty.

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [June 20, 2024, 3:37pm UTC](https://community.noloco.io/t/hide-collection-if-empty/597/9 "2024-06-20T15:37:46Z")

</div>

Do you mean a filter field, like the one a user applies?

If so, that’s very much intentional.  
If the section disapears after you add a filter, there would be no way to get it back (except maybe leaving the page).

Unless you’re talking about these types of filters, which are working as expected for me

![image](https://europe1.discourse-cdn.com/flex005/uploads/noloco/original/1X/28b9ed35585be371cc05451c2a95b78bbe753f73.png)
