# Filter one repeating group by activating a state of a group in another repeatable group

**URL:** <https://forum.bubble.io/t/filter-one-repeating-group-by-activating-a-state-of-a-group-in-another-repeatable-group/245556>\
**Category:** Need help\
**Created:** [February 6, 2023, 7:27pm UTC](https://forum.bubble.io/t/filter-one-repeating-group-by-activating-a-state-of-a-group-in-another-repeatable-group/245556 "2023-02-06T19:27:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![t.b.andersson1](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@t.b.andersson1](https://forum.bubble.io/u/t.b.andersson1)\
**Post date:** [February 6, 2023, 7:27pm UTC](https://forum.bubble.io/t/filter-one-repeating-group-by-activating-a-state-of-a-group-in-another-repeatable-group/245556/1 "2023-02-06T19:27:35Z")

</div>

Hi,

I want to be able to filter one repeating group by having the user clicking an item in another repeating group and thereby activating that item’s state.

The repeating group I want to filter is a list of destinations, where each destination can have multiple themes (linked, theme is its own database).

The repeating group I want to filter by is a list of themes. When I click a theme, I activate it’s state which has allowed me to recolor it. I now also want to input the name of that theme into the filter of the other repeating group, but I can’t seem to do so. I’ve tried:

1. Either use the workflow editor to input a theme in a repeating group’s data source filter (e.g. when I click a theme),
2. Use the repeating group’s datasource constraints to filter by the items in the other repeating group that are in an active state.

See below for a screenshot of how the UI looks\>

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/c/ccb618e018dd8ca0f5795fd71282d95e91ee62b5.jpeg)

---

<div class="post-metadata">

**Author:** ![t.b.andersson1](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@t.b.andersson1](https://forum.bubble.io/u/t.b.andersson1)\
**Post date:** [February 6, 2023, 9:03pm UTC](https://forum.bubble.io/t/filter-one-repeating-group-by-activating-a-state-of-a-group-in-another-repeatable-group/245556/2 "2023-02-06T21:03:23Z")

</div>

I found one approach that should work, but that I can’t get to work, which uses the same approach as in this template: [Travel Marketplace like Airbnb Template | Bubble](https://bubble.io/template/travel-marketplace-like-airbnb-1631272543074x614536129996390400)

I managed to be able to click the Theme and send it to the URL of the page:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/6/163318309ee16b09ec49a12f0a363cccf7d34fe8.jpeg)

I then look at the page URL to constrain the list of destinations:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/7/c70eea0ee88cb0025beb108747d1082a1af25573.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/a/aaea4a68cee80fd7b85ce15c7aef8fd2fe8b4d2e.png)

But for some reason, this then produces zero results and no destinations are found? For reference, this should be found in the linked field “theme” in the database for destinations:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/b/fb1b25b7b1a71980cc9ba00d33f6b126bfb6bc01.png)

I simply cannot wrap my head around why this doesn’t work. Any clues?

---

<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 17, 2023, 7:27pm UTC](https://forum.bubble.io/t/filter-one-repeating-group-by-activating-a-state-of-a-group-in-another-repeatable-group/245556/3 "2023-04-17T19:27:47Z")

</div>

Closed on April 17, 2023, 7:27pm UTC

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