Change data source depending on attribute

Hi there.

I have a repeating group with the users in the database.
I also have a drop down with a couple of static options.

I want the data source to change depending on the dropdowns selection so i made a condition on the repeating group changing the data source when the drop Downs value is “x”

The real issue though is that the data source i want to change is based on an attribute in the users data.
The user has a field called “orders” which is a list of “order”(a different thing)
Each “order” has a “paid” field (yes/no)

I want to be able to select drop down x to show me the data of each user with orders where paid status is No.
But i simply cant find a way to find it.
Can anyone help?

Use different RG’s and selectively show based on source

That could be a last option. I’m hoping to sort it with one RG though, to avoid too many elements.

Hey @balle.emil

See this:
Demo: https://ambroisetestapps.bubbleapps.io/version-test/rg-source
Editor: https://bubble.io/page?type=page&name=rg-source&id=ambroisetestapps&tab=tabs-1

Hope that helps

Ambroise

Need extra help?

Book a free 15 minutes call - happy to help if I can

Hey! Thanks for trying to help out.

The RG source is a list of users though. I want to display the Users which have “orders” in their list of orders that are “paid” (no). But it wont let me select that.

Ah didn’t get that @balle.emil, please check again and have a look at the dummy data I created to test it out

Ambroise

Need extra help?

Book a free 15 minutes call - happy to help if I can

Brilliant! I solved it by using the advanced option in filtering!

Cool glad I could be of help!

Ambroise

Need extra help?

Book a free 15 minutes call - happy to help if I can