# Recursive Repeating Group?

**URL:** <https://forum.bubble.io/t/recursive-repeating-group/189569>\
**Category:** Plugins\
**Created:** [February 2, 2022, 3:57pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569 "2022-02-02T15:57:39Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![umiumansa](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@umiumansa](https://forum.bubble.io/u/umiumansa)\
**Post date:** [February 2, 2022, 3:57pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/1 "2022-02-02T15:57:39Z")

</div>

Hi,

Is there any recursive repeating group or a way to achieve that?

I mean a group where I can display a database item and then below it its children, and below them their children etc. without knowing the maximum of children?

---

<div class="post-metadata">

**Author:** ![paul29](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@paul29](https://forum.bubble.io/u/paul29)\
**Post date:** [February 2, 2022, 4:28pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/2 "2022-02-02T16:28:18Z")

</div>

You can achieve this by setting up a repeating group within a repeating group.

This article’s first reply has a link to two other forum posts on the topic:

> [@Repeating Group inside of a Repeating group?](http://forum.bubble.io/t/repeating-group-inside-of-a-repeating-group/40486):
>
> Hi there, I am looking to have a repeating group that has today’s date, and then every previous day. Inside the date group, I would have certain events that occurred for that date. Does anyone know how to do this or have some guide for it? It seems extremely tricky… Trying to base it off of this: Any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![umiumansa](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@umiumansa](https://forum.bubble.io/u/umiumansa)\
**Post date:** [February 2, 2022, 5:07pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/3 "2022-02-02T17:07:50Z")

</div>

Right, but that only solves the issue if you know how many levels there are. What I’m talking about is displaying un indefinite number of children within children within children. There could be 2, 3, 4, or N levels. Like a tree system.

---

<div class="post-metadata">

**Author:** ![paul29](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@paul29](https://forum.bubble.io/u/paul29)\
**Post date:** [February 2, 2022, 6:20pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/4 "2022-02-02T18:20:47Z")

</div>

Ahh. I see. I wouldn’t know for sure without playing around with it and knowing exactly your database setup but this article might help:

> **[How to display a list in a Repeating Group in Bubble.io](https://himanshu-sharma.medium.com/how-to-display-a-list-in-a-repeating-group-in-bubble-io-726b2d8abab2)**
>
> This tutorial will show how you can display a list inside a RG with each entry occupying a cell

---

<div class="post-metadata">

**Author:** ![paul29](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@paul29](https://forum.bubble.io/u/paul29)\
**Post date:** [February 2, 2022, 6:22pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/5 "2022-02-02T18:22:16Z")

</div>

This may mean you have to change around your database setup but a list of things is variable in length so potentially this can achieve what you’re after? But again, I could be wrong

---

<div class="post-metadata">

**Author:** ![aaronsheldon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aaronsheldon/32/115965_2.png) [@aaronsheldon](https://forum.bubble.io/u/aaronsheldon)\
**Post date:** [February 2, 2022, 6:59pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/6 "2022-02-02T18:59:26Z")

</div>

This sounds much better suited for some form of Tree Browser/Explorer Element. That said hierarchies generally provide a terrible UX/UI. Does anyone really enjoy using a file browser, or typing endless permutations of `cd/ls`? Can I ask what your use case is that you would need strongly hierarchical data? Presumably you would have some _“thing”_ in the DB that has a self-referential parent/child field?

---

<div class="post-metadata">

**Author:** ![umiumansa](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@umiumansa](https://forum.bubble.io/u/umiumansa)\
**Post date:** [February 3, 2022, 2:18am UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/7 "2022-02-03T02:18:10Z")

</div>

Right, I have exactly that. Items in a data set that reference to other items in the same dataset as their parent.

For each item I want to be able to reveal the children below, and for each child the other children and so on.

In fact the data represents some kind of genealogy.

---

<div class="post-metadata">

**Author:** ![aaronsheldon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aaronsheldon/32/115965_2.png) [@aaronsheldon](https://forum.bubble.io/u/aaronsheldon)\
**Post date:** [February 3, 2022, 2:24am UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/8 "2022-02-03T02:24:47Z")

</div>

I doubt there is a plugin to render expore-able genealogy trees. But I am certain there are javascript libraries that a plugin can be built around. Try searching for javascript libraries to visualize directed acyclic graphs.

---

<div class="post-metadata">

**Author:** ![umiumansa](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@umiumansa](https://forum.bubble.io/u/umiumansa)\
**Post date:** [February 3, 2022, 2:54am UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/9 "2022-02-03T02:54:37Z")

</div>

Well there are org chart plugins out there, but that wasn’t quite what I was looking for. Let’s see.

---

<div class="post-metadata">

**Author:** ![aaronsheldon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aaronsheldon/32/115965_2.png) [@aaronsheldon](https://forum.bubble.io/u/aaronsheldon)\
**Post date:** [February 3, 2022, 7:35pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/10 "2022-02-03T19:35:11Z")

</div>

Yeah I was thinking way more dynamic than that. Like the social network spide-o-grams that you can click, zoom in, and move nodes around.

---

<div class="post-metadata">

**Author:** ![aaronsheldon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aaronsheldon/32/115965_2.png) [@aaronsheldon](https://forum.bubble.io/u/aaronsheldon)\
**Post date:** [February 3, 2022, 9:02pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/11 "2022-02-03T21:02:25Z")

</div>

For example [Cytopscape.js](https://js.cytoscape.org/)

---

<div class="post-metadata">

**Author:** ![umiumansa](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@umiumansa](https://forum.bubble.io/u/umiumansa)\
**Post date:** [February 4, 2022, 2:23am UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/12 "2022-02-04T02:23:37Z")

</div>

Ooooouuuh, that looks nice.

---

<div class="post-metadata">

**Author:** ![aaronsheldon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aaronsheldon/32/115965_2.png) [@aaronsheldon](https://forum.bubble.io/u/aaronsheldon)\
**Post date:** [February 4, 2022, 3:52pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/13 "2022-02-04T15:52:05Z")

</div>

Say would you be able to generalize your app for psychologists taking geneologies on intake? Ditto for law firms dealing with family conflict?

---

<div class="post-metadata">

**Author:** ![umiumansa](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@umiumansa](https://forum.bubble.io/u/umiumansa)\
**Post date:** [February 4, 2022, 4:49pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/14 "2022-02-04T16:49:18Z")

</div>

No lol. Working on some kind of game-like simulation. Nothing that serious.

---

<div class="post-metadata">

**Author:** ![aaronsheldon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aaronsheldon/32/115965_2.png) [@aaronsheldon](https://forum.bubble.io/u/aaronsheldon)\
**Post date:** [February 4, 2022, 5:15pm UTC](https://forum.bubble.io/t/recursive-repeating-group/189569/15 "2022-02-04T17:15:55Z")

</div>

Cool. Sounds a lot less heavy (emotionally).
