# Search function / Filtering results in repeating group?

**URL:** <https://forum.bubble.io/t/search-function-filtering-results-in-repeating-group/94644>\
**Category:** Need help\
**Created:** [May 30, 2020, 3:15pm UTC](https://forum.bubble.io/t/search-function-filtering-results-in-repeating-group/94644 "2020-05-30T15:15:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hazuki](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hazuki/32/61448_2.png) [@Hazuki](https://forum.bubble.io/u/Hazuki)\
**Post date:** [May 30, 2020, 3:15pm UTC](https://forum.bubble.io/t/search-function-filtering-results-in-repeating-group/94644/1 "2020-05-30T15:15:50Z")

</div>

I am creating (in its most basic function) an events app.

The home page displays events created by Admin (user type) and displays these in a Repeating Group - a Description, date, title and image from each event.

I want to add a search function - filtering the Events displayed in the repeating group.

I have a search box and button. I tried ‘Display List’ in ‘RepeatingGroup’ with constrains, but it doesn’t seem to work. See screenshot.  
Any help appreciated!

 ![bubble event search](https://us1.discourse-cdn.com/bubble/original/3X/e/6/e6735e818c7e0ac81022b5d5ebec02072083d1f5.png)

---

<div class="post-metadata">

**Author:** ![ualdir](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ualdir/32/239084_2.png) [@ualdir](https://forum.bubble.io/u/ualdir)\
**Post date:** [May 30, 2020, 10:50pm UTC](https://forum.bubble.io/t/search-function-filtering-results-in-repeating-group/94644/2 "2020-05-30T22:50:37Z")

</div>

You have to do that on Repeating Group element data, not on workflow. Use Filter or Constraint.

---

<div class="post-metadata">

**Author:** ![Hazuki](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hazuki/32/61448_2.png) [@Hazuki](https://forum.bubble.io/u/Hazuki)\
**Post date:** [May 31, 2020, 11:58am UTC](https://forum.bubble.io/t/search-function-filtering-results-in-repeating-group/94644/3 "2020-05-31T11:58:33Z")

</div>

Hi Ualdir,

Still struggling with this.  
In the RG element data I can’t make it so the data updates when pressing a button.

In workflow, I can make Search Button, when pressed, ‘Display list’ with my constraints (Any Field contains Search Box value), similarly to [this tutorial](https://www.youtube.com/watch?v=Lg0NLKBBTgE) by @romanmg, but the Repeating Group returns blank.

 ![bubble RG](https://us1.discourse-cdn.com/bubble/original/3X/6/8/683bc64b956c650085bd72a52193790fa1d6d984.jpeg)

---

<div class="post-metadata">

**Author:** ![Hazuki](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hazuki/32/61448_2.png) [@Hazuki](https://forum.bubble.io/u/Hazuki)\
**Post date:** [June 1, 2020, 2:53pm UTC](https://forum.bubble.io/t/search-function-filtering-results-in-repeating-group/94644/4 "2020-06-01T14:53:19Z")

</div>

EDIT: Don’t worry - I got it to work in the end. No idea how!!

I tried implementing the search box through the repeating group element using constraints on the Data Source (When ‘Button’ is pressed, ‘Do a Search’ - Events (Thing) - Constrained by ‘Any Field contains Search box’s value’) but what was happening is the filters would only apply when HOLDING DOWN/PRESSING the button. When you let go of the click the original data would return. Still don’t know how to prevent that, but…

I went back to implementing the search through the Workflow and basically did what the video I posted said. When Button is clicked - Display List - Repeating Group - Do a search…blah blah. Works fine now - I just deleted that element of the work flow and did it again and it worked 🤷‍♂️

Thanks anyway!

---

<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:** [August 8, 2020, 3:15pm UTC](https://forum.bubble.io/t/search-function-filtering-results-in-repeating-group/94644/5 "2020-08-08T15:15:51Z")

</div>

Closed on August 8, 2020, 3:15pm UTC

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