# Creating a reusable repeating group

**URL:** <https://forum.bubble.io/t/creating-a-reusable-repeating-group/245318>\
**Category:** Need help\
**Created:** [February 5, 2023, 3:18pm UTC](https://forum.bubble.io/t/creating-a-reusable-repeating-group/245318 "2023-02-05T15:18:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![philipp.laengle107](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philipp.laengle107/32/262608_2.png) [@philipp.laengle107](https://forum.bubble.io/u/philipp.laengle107)\
**Post date:** [February 5, 2023, 3:18pm UTC](https://forum.bubble.io/t/creating-a-reusable-repeating-group/245318/1 "2023-02-05T15:18:59Z")

</div>

Hi together,

I have an application which requires me to use many RGs with different “Do a search for” as Datasource. Is there a smart way to only work on one group and let all the changes cascade to the others i.e. in a reusable element?

I would love to avoid having to edit several RGs that look visually exactly idential when I need to make changes to responesiveness etc. in the future.

I’m grateful for any hints! 🙂  
Best,  
Philipp

---

<div class="post-metadata">

**Author:** ![sharma.himanshu0608](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sharma.himanshu0608/32/81321_2.png) [@sharma.himanshu0608](https://forum.bubble.io/u/sharma.himanshu0608)\
**Post date:** [February 5, 2023, 6:57pm UTC](https://forum.bubble.io/t/creating-a-reusable-repeating-group/245318/2 "2023-02-05T18:57:28Z")

</div>

Is the type of content same for all the rg?

---

<div class="post-metadata">

**Author:** ![johndurso](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johndurso/32/160384_2.png) [@johndurso](https://forum.bubble.io/u/johndurso)\
**Post date:** [February 5, 2023, 7:10pm UTC](https://forum.bubble.io/t/creating-a-reusable-repeating-group/245318/3 "2023-02-05T19:10:13Z")

</div>

If the type of data for all the repeating groups is the same, then yes you can. I.e., if for all of the repeating groups you are showing type User, then that’s doable. I assume this is the case since you’re saying they look visually exactly identical.

It’s not necessarily straightforward, because the data source for a RE can’t be a list, so you need some other way to get the list of items you want to display into the RE. You can do this by setting a custom state in the RE, and make it a list:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/9/6904221008d607c1db0f3437d803a30646cac0e3.png)

You can access this state from the page on which you’re using the RG. You’ll need to set the state from a workflow. If you don’t already have a workflow that would make sense to put it in, you can set the state on page load or when the element becomes visible (assuming you don’t need to reference the data when it’s not visible) or something like that.

You’ll have to decide if that extra setup is worth it for you. I’d say probably yes; in my experience futzing with design on multiple elements that are supposed to be identical is a pain in the ass!

---

<div class="post-metadata">

**Author:** ![philipp.laengle107](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philipp.laengle107/32/262608_2.png) [@philipp.laengle107](https://forum.bubble.io/u/philipp.laengle107)\
**Post date:** [February 6, 2023, 6:45am UTC](https://forum.bubble.io/t/creating-a-reusable-repeating-group/245318/4 "2023-02-06T06:45:52Z")

</div>

Hi John, that’s a very interesting solution. I think I will use this approach for this application as it might be worth it in the long run. (and who wants to edit more than 8 RGs in case of a minor change…) Just need to check the performance when setting the content with states. Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![philipp.laengle107](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philipp.laengle107/32/262608_2.png) [@philipp.laengle107](https://forum.bubble.io/u/philipp.laengle107)\
**Post date:** [February 6, 2023, 11:14am UTC](https://forum.bubble.io/t/creating-a-reusable-repeating-group/245318/5 "2023-02-06T11:14:42Z")

</div>

Works like a charme! This concept offers entirely new ways to work with RGs for me. Thank you John! 🙂

---

<div class="post-metadata">

**Author:** ![johndurso](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johndurso/32/160384_2.png) [@johndurso](https://forum.bubble.io/u/johndurso)\
**Post date:** [February 6, 2023, 6:10pm UTC](https://forum.bubble.io/t/creating-a-reusable-repeating-group/245318/6 "2023-02-06T18:10:44Z")

</div>

Glad I could help!

FYI it looks like you marked your reply as the solution; if you mark my description as the solution it would help others find it because of the way Bubble pulls up the solution reply into the original post.

---

<div class="post-metadata">

**Author:** ![philipp.laengle107](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philipp.laengle107/32/262608_2.png) [@philipp.laengle107](https://forum.bubble.io/u/philipp.laengle107)\
**Post date:** [February 6, 2023, 7:35pm UTC](https://forum.bubble.io/t/creating-a-reusable-repeating-group/245318/7 "2023-02-06T19:35:36Z")

</div>

Looks like I fat fingered. Marked the right solution 🙂

---

<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:** [April 16, 2023, 3:19pm UTC](https://forum.bubble.io/t/creating-a-reusable-repeating-group/245318/8 "2023-04-16T15:19:51Z")

</div>

Closed on April 16, 2023, 3:19pm UTC

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