# Filter a repeating group - stumped

**URL:** <https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372>\
**Category:** Database\
**Created:** [June 11, 2021, 11:00pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372 "2021-06-11T23:00:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 11, 2021, 11:00pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/1 "2021-06-11T23:00:11Z")

</div>

I am stumped on this one! I am trying to filter a repeating group, but the filtered results are not in my database, they are calculated on page. Let me explain:

Users create Events which have an expiry date. I work out ‘Expired’ Events, for example, like this:

![expired](https://us1.discourse-cdn.com/bubble/original/3X/6/7/67a4362ee5433a69a94c8c31b62f81b1f4755cc6.png)

So, how would I enable my dropdown filter to show all ‘Expired’ Events? Here’s my page showing 1 active and 1 expired event.

 ![filter](https://us1.discourse-cdn.com/bubble/original/3X/2/4/242bc7f07b9a80af26682eaac23cc13a339c35a2.png)

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [June 12, 2021, 5:50am UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/2 "2021-06-12T05:50:33Z")

</div>

Could you show the configuration of the dropdown element?

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 13, 2021, 11:04am UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/3 "2021-06-13T11:04:23Z")

</div>

As you can see, it’s empty. This is because I had to delete my failed attempts. I have read and watched many videos but I can’t figure this out. I think I need someone to walk me through step by step as something is not clicking for me.

 ![dropdpwn1](https://us1.discourse-cdn.com/bubble/original/3X/6/c/6c146b5e9b5e27932a1ff8d896f880216cb2b133.png)

The repeating group shows events created by the current User

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/1/41355765565944edd8db2056669310a9e60ac189.png)

The Bubble manual says I should create a custom state. I created “date\_expired” thinking I could use that somehow … but I actually have no idea what I am doing.

 ![custom-state](https://us1.discourse-cdn.com/bubble/original/3X/7/7/77bbabb3743031545d0fddb6e91ad8b2b6b01ec9.png)

---

<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:** [June 13, 2021, 1:41pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/4 "2021-06-13T13:41:12Z")

</div>

Hi there, @darren.james7518… if I understand your post correctly, you should be able to scrap the custom state, leave the repeating group’s data source as you are showing it, and add two conditionals to the repeating group that look like this…

 ![events](https://us1.discourse-cdn.com/bubble/original/3X/4/b/4b685273dff3233af184799a1cf92d8baaec5182.png)

In the screenshot, I am showing the constraints on the search for expired events. I’m sure it goes without saying that the constraints on the search for active events are the same with the less than operator flipped to greater than.

Hope this helps.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 13, 2021, 3:42pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/5 "2021-06-13T15:42:42Z")

</div>

Hi Mike, I am unable to set the conditional as you have because I don’t have an option for “Active events”? Maybe see how my set up is in case I am missing something big! [https://bubble.io/page?type=page&name=my\_events&id=vdfgfdg&tab=tabs-1](https://bubble.io/page?type=page&name=my_events&id=vdfgfdg&tab=tabs-1)

 ![missing](https://us1.discourse-cdn.com/bubble/original/3X/e/7/e7155f8abc1d056a0ca52f665ed0e6c35c26505f.png)

---

<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:** [June 13, 2021, 5:17pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/6 "2021-06-13T17:17:27Z")

</div>

You don’t have an option for “Active events” because it is a static option that you just need to type as opposed to selecting it from the dropdown. So, literally type “Active events” in the search and then click away from the field and it will stay there.

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 13, 2021, 5:57pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/7 "2021-06-13T17:57:40Z")

</div>

I don’t want users to have to type anything. I want them to select from the dropdown menu and immediately see the results. This issue may in fact be impossible because I just paid someone on Fiverr and after 30 mins he said it’s not possible.

Side note: Fiverr refunded me but to my Fiverr account, so I can’t get the money back (won’t use Fiverr again).

---

<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:** [June 13, 2021, 6:07pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/8 "2021-06-13T18:07:28Z")

</div>

It is possible, and you misunderstood what I wrote. I never said anything about your users typing anything. I was telling you what you need to type in the editor.

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 13, 2021, 6:09pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/9 "2021-06-13T18:09:09Z")

</div>

I did have option for “Active events” - see below

 ![choices](https://us1.discourse-cdn.com/bubble/original/3X/1/2/12d481d4a4e3bc3295859ee9635a3cedf92ca981.png)

---

<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:** [June 13, 2021, 6:14pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/10 "2021-06-13T18:14:09Z")

</div>

No, in the conditional for the repeating group. Literally type “Active events” right here…

 ![condition](https://us1.discourse-cdn.com/bubble/original/3X/8/b/8b6576d8288b8ac0907817a07404246d591338b8.png)

If you set your editor to editable, I can try to get it to work for you.

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 13, 2021, 6:16pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/11 "2021-06-13T18:16:46Z")

</div>

> [@mikeloc](#):
>
> Active events

Ah, sorry I misunderstood you! I have done that but the next step is the Data source but that is not showing either … yes, I’d love your input so I will set the editor to editable - thanks!

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 13, 2021, 6:17pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/12 "2021-06-13T18:17:05Z")

</div>

> **[Bubble Editor - Vdfgfdg](https://bubble.io/page?type=page&name=my_events&id=vdfgfdg&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.

---

<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:** [June 13, 2021, 6:25pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/13 "2021-06-13T18:25:53Z")

</div>

Someone else is in your app, and either you or they did something that messed things up pretty badly. I have no idea what’s going on in there, but before it got messed up, I think I figured out what’s going on. Look at the screenshot I provided in my initial response, and set up your repeating group conditionals just like that… however, instead of created date, use the `Date` field you have for your events.

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 13, 2021, 6:27pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/14 "2021-06-13T18:27:29Z")

</div>

Someone has deleted all my work … I spend 3 weeks designing the site, I can’t believe it. What can I do?

---

<div class="post-metadata">

**Author:** ![jared.gibb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jared.gibb/32/123329_2.png) [@jared.gibb](https://forum.bubble.io/u/jared.gibb)\
**Post date:** [June 13, 2021, 6:27pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/15 "2021-06-13T18:27:31Z")

</div>

This sounds like the solution.

I would think the search constraint would be

If date of event is greater than current date/time

---

<div class="post-metadata">

**Author:** ![jared.gibb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jared.gibb/32/123329_2.png) [@jared.gibb](https://forum.bubble.io/u/jared.gibb)\
**Post date:** [June 13, 2021, 6:28pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/16 "2021-06-13T18:28:12Z")

</div>

> [@darren.james7518](#):
>
> Someone has deleted all my work … I spend 3 weeks designing the site, I can’t believe it. What can I do?

This sucks. Happened to me once.

Try clicking the “revert changes” button?

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 13, 2021, 6:28pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/17 "2021-06-13T18:28:40Z")

</div>

revert not working … can Bubble customer support get my site back?

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 13, 2021, 6:30pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/18 "2021-06-13T18:30:52Z")

</div>

Whoever did this has messed me up, I was already not doing well mentally and this is dreadful … I put so much into this site. Who would do this?

---

<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:** [June 13, 2021, 6:32pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/19 "2021-06-13T18:32:16Z")

</div>

I have never seen anything like this in 3+ years of using Bubble… so sorry, Darren.

First, immediately set your editor back to private. Then, go to the history area and try to revert back to about half an hour or so ago…

![history](https://us1.discourse-cdn.com/bubble/original/3X/c/d/cd8f7d598abb8f226caa41acc1ef5069018065ef.png)

---

<div class="post-metadata">

**Author:** ![darren.james7518](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@darren.james7518](https://forum.bubble.io/u/darren.james7518)\
**Post date:** [June 13, 2021, 6:33pm UTC](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372/20 "2021-06-13T18:33:38Z")

</div>

I have no saved points as I’m on the free plan still

[Next page](https://forum.bubble.io/t/filter-a-repeating-group-stumped/155372.md?page=2)
