# Send Data from Repeating Group to another Repeating Group

**URL:** <https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233>\
**Category:** Mobile\
**Created:** [February 9, 2021, 12:31pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233 "2021-02-09T12:31:27Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bosunjohnson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bosunjohnson/32/34541_2.png) [@bosunjohnson](https://forum.bubble.io/u/bosunjohnson)\
**Post date:** [February 9, 2021, 12:31pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/1 "2021-02-09T12:31:27Z")

</div>

Hello Bubblers,

I’ve been trying to send data from a RG to another RG. I’ve not been able to achieve this.

I have the first RG that gets its content from an option set, now I want to be able to click on the cell of the RG and pass the data to another RG which will in turn use the data sent to it to display another list.

Any help or video tutorial will be appreciated.

---

<div class="post-metadata">

**Author:** ![kaanaksoy81](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kaanaksoy81/32/56650_2.png) [@kaanaksoy81](https://forum.bubble.io/u/kaanaksoy81)\
**Post date:** [February 9, 2021, 12:36pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/2 "2021-02-09T12:36:07Z")

</div>

Hello! 🙂  
Custom states are your friend.  
Second RG has a custom state on which it is (second RG) is based on.  
The first RG passes/updates second RG’s custom state on click.

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bosunjohnson/32/34541_2.png) [@bosunjohnson](https://forum.bubble.io/u/bosunjohnson)\
**Post date:** [February 9, 2021, 1:44pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/3 "2021-02-09T13:44:29Z")

</div>

Thanks for the response. I have only used custom states to hide/show elements on the page. So how do I send the data from the RG1 to the RG2?

---

<div class="post-metadata">

**Author:** ![kaanaksoy81](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kaanaksoy81/32/56650_2.png) [@kaanaksoy81](https://forum.bubble.io/u/kaanaksoy81)\
**Post date:** [February 9, 2021, 1:53pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/4 "2021-02-09T13:53:09Z")

</div>

You are welcome.  
It will be in the workflows.  
 ![Screenshot 2021-02-09 at 14.51.54](https://us1.discourse-cdn.com/bubble/original/3X/5/e/5e31e380f60f96300cb655d88f05e13e027fb7d6.png)

You will “set state of an element” . Element will be the second RG.

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bosunjohnson/32/34541_2.png) [@bosunjohnson](https://forum.bubble.io/u/bosunjohnson)\
**Post date:** [February 9, 2021, 2:09pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/5 "2021-02-09T14:09:53Z")

</div>

Now its asking for the custom state.

 ![cs](https://us1.discourse-cdn.com/bubble/original/3X/1/1/11846acda656132bd7c9c585b34bb087fd400f21.png)

---

<div class="post-metadata">

**Author:** ![kaanaksoy81](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kaanaksoy81/32/56650_2.png) [@kaanaksoy81](https://forum.bubble.io/u/kaanaksoy81)\
**Post date:** [February 9, 2021, 2:30pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/6 "2021-02-09T14:30:26Z")

</div>

Everything is explained in my first message.  
You need to play around little bit.

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bosunjohnson/32/34541_2.png) [@bosunjohnson](https://forum.bubble.io/u/bosunjohnson)\
**Post date:** [February 9, 2021, 4:55pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/7 "2021-02-09T16:55:58Z")

</div>

Thanks for your help. I have search for videos on the custom states and found some really useful one. I have been playing around with this below.

> **[Bubble Editor - Testedand](https://bubble.io/page?name=index&id=testedand&tab=tabs-6&subtab=General)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

I am trying to achieve: Whenever I click on a cell in the first RG, it should show the details (pictures) in the second RG. I have not been able to achieve this so far. The picture I want it to show is from the Products table in the database.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [February 9, 2021, 5:32pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/8 "2021-02-09T17:32:05Z")

</div>

There’s no need to use custom states for this.

Just use the ‘Display List’ action in your workflow when the Product Category button is clicked, to send the required data to the second RG (the list of products).

The data source will be ‘Do a search for Products’ with a constraint to match the products category to the current cell’s category.

The only problem is you don’t currently have your data set up correctly - there is no Category option on your Product datatype, so no way to match products to categories.

So you first need to add a field on your Product datatype of ‘Product Category’ type in order to tie the two things together.

---

<div class="post-metadata">

**Author:** ![bosunjohnson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bosunjohnson/32/34541_2.png) [@bosunjohnson](https://forum.bubble.io/u/bosunjohnson)\
**Post date:** [February 9, 2021, 7:43pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/9 "2021-02-09T19:43:06Z")

</div>

Thanks. You are a lifesaver! It worked.

---

<div class="post-metadata">

**Author:** ![matthieu.colinard](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@matthieu.colinard](https://forum.bubble.io/u/matthieu.colinard)\
**Post date:** [May 5, 2021, 7:37pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/10 "2021-05-05T19:37:28Z")

</div>

@adamhholmes

Hi Adam!

I also have this kind of issue.

I would like to send data from a RG to a reusable RG.

Unfortunately when I use display list, the reusable RG doesn’t show up in the element.

I was wondering if you had a way around.

Thank you!

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 5, 2021, 7:51pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/11 "2021-05-05T19:51:37Z")

</div>

If you’re using a RG inside a reusable element then you’ll have to do it with a custom state.

Have a custom state on the Resusable element, of the datatype of the RG, set to be a list.

The reusable RG data source will need to be the value of the custom state (the list).

Then, on your page, when you want to define the list for the RG to display, set the custom state on the reusable element to be the list you want to display (i.e the data from the first RG cell).

---

<div class="post-metadata">

**Author:** ![matthieu.colinard](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@matthieu.colinard](https://forum.bubble.io/u/matthieu.colinard)\
**Post date:** [May 5, 2021, 8:25pm UTC](https://forum.bubble.io/t/send-data-from-repeating-group-to-another-repeating-group/135233/12 "2021-05-05T20:25:18Z")

</div>

Thank you.

The first RG is within group 1 and shows a list of course.

The reusable RG is within group 2 and should show a list of lessons.

When a course title from group 1 is clicked, it should hide the group 1 and shows the group 2 with the list of lessons attached to a course.
