# Filtering a RG with using "All country data" plugin

**URL:** <https://forum.bubble.io/t/filtering-a-rg-with-using-all-country-data-plugin/72610>\
**Category:** Need help\
**Created:** [November 25, 2019, 10:48pm UTC](https://forum.bubble.io/t/filtering-a-rg-with-using-all-country-data-plugin/72610 "2019-11-25T22:48:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ulrich\_00132](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ulrich_00132/32/107834_2.png) [@ulrich\_00132](https://forum.bubble.io/u/ulrich_00132)\
**Post date:** [November 25, 2019, 10:48pm UTC](https://forum.bubble.io/t/filtering-a-rg-with-using-all-country-data-plugin/72610/1 "2019-11-25T22:48:47Z")

</div>

Hi all,

I’m trying to figure out how to filter a repeating group using All Country Data plugin?  
The only option I have are: Location (Data field):

- is within… Km/miles of …
- Is empty
- Isn’t empty

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

How can I allow users to filter the repeating group based on a list of selected countries? I’ve tried to a custom state but it doesn’t work.

Thank you very much.

---

<div class="post-metadata">

**Author:** ![ulrich\_00132](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ulrich_00132/32/107834_2.png) [@ulrich\_00132](https://forum.bubble.io/u/ulrich_00132)\
**Post date:** [November 26, 2019, 9:45pm UTC](https://forum.bubble.io/t/filtering-a-rg-with-using-all-country-data-plugin/72610/2 "2019-11-26T21:45:07Z")

</div>

Can somebody help please?

---

<div class="post-metadata">

**Author:** ![lottemint.md](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lottemint.md/32/26549_2.png) [@lottemint.md](https://forum.bubble.io/u/lottemint.md)\
**Post date:** [November 26, 2019, 11:06pm UTC](https://forum.bubble.io/t/filtering-a-rg-with-using-all-country-data-plugin/72610/3 "2019-11-26T23:06:41Z")

</div>

Hello,

Check out the attached video and screenshots, please:  
[https://yadi.sk/d/cbepC69xlmkNqA](https://yadi.sk/d/cbepC69xlmkNqA)

![image](https://us1.discourse-cdn.com/bubble/original/3X/6/8/687a52db05aca774ccbcea1908c93a030b3b666d.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/5/15d57c061d3092090c4c826a86b55937462d95c0.png)

I hope that helps.

Editor:

> **[Bubble Editor - Just4tests4](https://bubble.io/page?name=index&id=just4tests4&tab=tabs-1)**
>
> 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:** ![ulrich\_00132](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ulrich_00132/32/107834_2.png) [@ulrich\_00132](https://forum.bubble.io/u/ulrich_00132)\
**Post date:** [November 28, 2019, 7:41am UTC](https://forum.bubble.io/t/filtering-a-rg-with-using-all-country-data-plugin/72610/4 "2019-11-28T07:41:23Z")

</div>

Hi. Thanks for your help ;). It doesn’t work because, I’m trying to do it with a repeating group. A selection of a list of countries in a repeating group. Do you have any idea of how can I set this ?

Thanks again for your help 😉

---

<div class="post-metadata">

**Author:** ![lottemint.md](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lottemint.md/32/26549_2.png) [@lottemint.md](https://forum.bubble.io/u/lottemint.md)\
**Post date:** [December 2, 2019, 4:02pm UTC](https://forum.bubble.io/t/filtering-a-rg-with-using-all-country-data-plugin/72610/5 "2019-12-02T16:02:35Z")

</div>

> [@ulrich\_00132](#):
>
> Hi. Thanks for your help ;). It doesn’t work because, I’m trying to do it with a repeating group. A selection of a list of countries in a repeating group. Do you have any idea of how can I set this ?

Hello,

Can you provide a more detailed question, please?  
If you want to search for it by countries, cities, etc. - you need to create additional fields in your table. For instance, fields:  
**country** | text  
**city** | text

So, you can use them as constraints in your repeatinggroups.

---

<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:** [February 3, 2020, 10:48pm UTC](https://forum.bubble.io/t/filtering-a-rg-with-using-all-country-data-plugin/72610/6 "2020-02-03T22:48:49Z")

</div>

Closed on February 3, 2020, 10:48pm UTC

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