# Adjust repeating group based on search query

**URL:** <https://forum.bubble.io/t/adjust-repeating-group-based-on-search-query/163831>\
**Category:** Questions\
**Created:** [August 9, 2021, 1:20pm UTC](https://forum.bubble.io/t/adjust-repeating-group-based-on-search-query/163831 "2021-08-09T13:20:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuel.l.jefferies](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/samuel.l.jefferies/32/102966_2.png) [@samuel.l.jefferies](https://forum.bubble.io/u/samuel.l.jefferies)\
**Post date:** [August 9, 2021, 1:20pm UTC](https://forum.bubble.io/t/adjust-repeating-group-based-on-search-query/163831/1 "2021-08-09T13:20:28Z")

</div>

I have a repeating group which shows a text and date type which are user generated from an input form.

I’d like to create a search which when used both searches the text type and adjusts the repeating group to show the results.

I’ve added a search input into the repeating group which autocompletes and searches fine, however I can’t seem to get the repeating group updated against the search term.

Can anyone advise?

---

<div class="post-metadata">

**Author:** ![eve](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/eve/32/48346_2.png) [@eve](https://forum.bubble.io/u/eve)\
**Post date:** [August 10, 2021, 6:19pm UTC](https://forum.bubble.io/t/adjust-repeating-group-based-on-search-query/163831/2 "2021-08-10T18:19:34Z")

</div>

You should be able to use a “Display data in group” action in a workflow in order to get the repeating group to display the updated information.

---

<div class="post-metadata">

**Author:** ![nandyuiux](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nandyuiux/32/99812_2.png) [@nandyuiux](https://forum.bubble.io/u/nandyuiux)\
**Post date:** [August 10, 2021, 6:59pm UTC](https://forum.bubble.io/t/adjust-repeating-group-based-on-search-query/163831/3 "2021-08-10T18:59:34Z")

</div>

Have you tried the step below:

In the repeating group appearance:

Do a search for text - \> text **contains** search input’s value

---

<div class="post-metadata">

**Author:** ![samuel.l.jefferies](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/samuel.l.jefferies/32/102966_2.png) [@samuel.l.jefferies](https://forum.bubble.io/u/samuel.l.jefferies)\
**Post date:** [August 11, 2021, 3:48pm UTC](https://forum.bubble.io/t/adjust-repeating-group-based-on-search-query/163831/4 "2021-08-11T15:48:17Z")

</div>

Thanks what would the data source be? If I put SearchBox A’s typed text (or value) it shows as red? Do I need a further condition?

---

<div class="post-metadata">

**Author:** ![samuel.l.jefferies](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/samuel.l.jefferies/32/102966_2.png) [@samuel.l.jefferies](https://forum.bubble.io/u/samuel.l.jefferies)\
**Post date:** [August 11, 2021, 4:01pm UTC](https://forum.bubble.io/t/adjust-repeating-group-based-on-search-query/163831/5 "2021-08-11T16:01:02Z")

</div>

Don’t have an option for text contains so I did:  
Do a search for \> Title = SearchBox B’s typed text.  
Didn’t seem to work! Why is a search so tricky! Haha!

---

<div class="post-metadata">

**Author:** ![eve](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/eve/32/48346_2.png) [@eve](https://forum.bubble.io/u/eve)\
**Post date:** [August 11, 2021, 5:16pm UTC](https://forum.bubble.io/t/adjust-repeating-group-based-on-search-query/163831/6 "2021-08-11T17:16:36Z")

</div>

Try “contains” instead of = if you can – that should help!

---

<div class="post-metadata">

**Author:** ![samuel.l.jefferies](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/samuel.l.jefferies/32/102966_2.png) [@samuel.l.jefferies](https://forum.bubble.io/u/samuel.l.jefferies)\
**Post date:** [August 12, 2021, 3:18pm UTC](https://forum.bubble.io/t/adjust-repeating-group-based-on-search-query/163831/7 "2021-08-12T15:18:47Z")

</div>

Thanks Eve,

I have created the following workflow:

When button search is clicked \> Hide RepeatingGroup Todo \> Display list in RepeatingGroup ToDo.

To confirm I’m looking to hide the exisiting list and replace with just items whose title (a text field name) matches against a title the user has searched for.

If I go for display data in group I don’t see my repeating group, hence I’ve chosen the Display List but in this option there’s no way to filter against the title and only show these results?

---

<div class="post-metadata">

**Author:** ![nocodelib](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodelib/32/102081_2.png) [@nocodelib](https://forum.bubble.io/u/nocodelib)\
**Post date:** [August 12, 2021, 3:56pm UTC](https://forum.bubble.io/t/adjust-repeating-group-based-on-search-query/163831/8 "2021-08-12T15:56:56Z")

</div>

Hi @samuel.l.jefferies

Try doing this:

In the repeating group add a condition:  
“input’s value is not empty”  
then,  
Data Source: do a search for “data”\> text contains input’s value

In this case you won’t need any workflow.

You can also watch this video by @Trynocode which explains this quite nicely: [https://www.youtube.com/watch?v=ogkUuQeoEsQ](https://www.youtube.com/watch?v=ogkUuQeoEsQ)

I hope this helps!
