# Open button inside repeating group

**URL:** <https://forum.bubble.io/t/open-button-inside-repeating-group/223017>\
**Category:** Need help\
**Created:** [September 5, 2022, 12:41am UTC](https://forum.bubble.io/t/open-button-inside-repeating-group/223017 "2022-09-05T00:41:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zelftb](https://avatars.discourse-cdn.com/v4/letter/z/a88e4f/32.png) [@zelftb](https://forum.bubble.io/u/zelftb)\
**Post date:** [September 5, 2022, 12:41am UTC](https://forum.bubble.io/t/open-button-inside-repeating-group/223017/1 "2022-09-05T00:41:08Z")

</div>

Hey guys.  
I have a repeating group form with some basic info about users. It has an Icon that open a group inside repeating group to show an additional info about user. But I want to open only one row with the one specific user.

---

<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:** [September 5, 2022, 12:49am UTC](https://forum.bubble.io/t/open-button-inside-repeating-group/223017/2 "2022-09-05T00:49:07Z")

</div>

Hi there, @zelftb… one way to do what you described is to set a custom state’s value to the current cell’s index when the icon is clicked. Then, add a condition to the group that shows the additional info about the user that says when the custom state’s value is the current cell’s index, the group is visible.

Hope this helps.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![ritzygem13](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ritzygem13/32/135733_2.png) [@ritzygem13](https://forum.bubble.io/u/ritzygem13)\
**Post date:** [September 5, 2022, 8:04am UTC](https://forum.bubble.io/t/open-button-inside-repeating-group/223017/3 "2022-09-05T08:04:04Z")

</div>

![UI 12](https://us1.discourse-cdn.com/bubble/original/3X/2/0/2007bec65fa57fc6e0a8d11b76460ddea2f2e590.png)

To achieve this behaviour, you have to set the element you want to be visible when the show more is clicked in a group and make that group invisible on page load.

when the show more button is clicked you set a state called toggle and a data type of number. The value of the state will be

> the current cell index.
> 
> ![UI 13](https://us1.discourse-cdn.com/bubble/original/3X/4/e/4ec26ed8473d160bee4debbc3271306f3f23c002.png)

On the group, you want to show when the **show more button** is clicked you add a condition that says,

> when repeating\_group\_ problem toggle is current cell index. This element is visible
> 
> ![UI 14](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2870544c4dc4ff5acddf9360601360992dbad584.png)

---

<div class="post-metadata">

**Author:** ![zelftb](https://avatars.discourse-cdn.com/v4/letter/z/a88e4f/32.png) [@zelftb](https://forum.bubble.io/u/zelftb)\
**Post date:** [October 11, 2022, 4:13pm UTC](https://forum.bubble.io/t/open-button-inside-repeating-group/223017/4 "2022-10-11T16:13:49Z")

</div>

It works but what I have to change if I want to close previous shown group when choose another one to open?

---

<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 11, 2022, 4:19pm UTC](https://forum.bubble.io/t/open-button-inside-repeating-group/223017/5 "2022-10-11T16:19:42Z")

</div>

You shouldn’t have to change anything because the only group that should be showing is the group that is in the cell with the index that matches the custom state’s value.

---

<div class="post-metadata">

**Author:** ![zelftb](https://avatars.discourse-cdn.com/v4/letter/z/a88e4f/32.png) [@zelftb](https://forum.bubble.io/u/zelftb)\
**Post date:** [October 11, 2022, 4:33pm UTC](https://forum.bubble.io/t/open-button-inside-repeating-group/223017/6 "2022-10-11T16:33:55Z")

</div>

Yep thanks. My mistake. I’ve set custom state to an element of repeating group but not to whole page.

---

<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:** [November 14, 2022, 12:41am UTC](https://forum.bubble.io/t/open-button-inside-repeating-group/223017/7 "2022-11-14T00:41:55Z")

</div>

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