# Collapse when hidden not working for elements inside a repeating group

**URL:** <https://forum.bubble.io/t/collapse-when-hidden-not-working-for-elements-inside-a-repeating-group/290811>\
**Category:** Need help\
**Created:** [October 31, 2023, 10:17am UTC](https://forum.bubble.io/t/collapse-when-hidden-not-working-for-elements-inside-a-repeating-group/290811 "2023-10-31T10:17:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![design4](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@design4](https://forum.bubble.io/u/design4)\
**Post date:** [October 31, 2023, 10:17am UTC](https://forum.bubble.io/t/collapse-when-hidden-not-working-for-elements-inside-a-repeating-group/290811/1 "2023-10-31T10:17:44Z")

</div>

Hey guys, I am trying to hide groups within a repeating group that meet a certain condition. Collapse when hidden is not working and there are spaces left after the groups are hidden. I need help on how to hide the groups without spaces being left. I have attached an image below to demonstrate what I’m saying

 ![screenshot 1](https://us1.discourse-cdn.com/bubble/original/3X/e/3/e39b274e4185741fb68f79b2dc8ac0eabc944cde.png)

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [October 31, 2023, 10:29am UTC](https://forum.bubble.io/t/collapse-when-hidden-not-working-for-elements-inside-a-repeating-group/290811/2 "2023-10-31T10:29:34Z")

</div>

Hi there, @design4… this topic comes up pretty often, and the bottom line is that you don’t hide elements in repeating groups and attempt to collapse the hidden rows. Instead, you add constraints/filters to the repeating group’s data source so that only the relevant items are shown.

Hope this helps.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![design4](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@design4](https://forum.bubble.io/u/design4)\
**Post date:** [October 31, 2023, 10:40am UTC](https://forum.bubble.io/t/collapse-when-hidden-not-working-for-elements-inside-a-repeating-group/290811/3 "2023-10-31T10:40:10Z")

</div>

Thank you for the clarification. Hope you have a nice day!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [January 9, 2024, 10:17am UTC](https://forum.bubble.io/t/collapse-when-hidden-not-working-for-elements-inside-a-repeating-group/290811/4 "2024-01-09T10:17:53Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
