Filter RG by multiple multidropdown options - get data page url

Top Chef <--------------------Click Link

How to filter RepeatingGroup by multiple multiddrowndown options and have results shown by way of “Get data from page url”. Like for example in the image below, I have several categories chosen for two multidropdowns and I would like a combination of those results to appear in the RepeatingGroup using “Get data from page url”. I have tried to but I don’t know how to do this. How do I achieve this?

So unfortunately Bubble doesn’t natively support lists in URL parameters, so you’ll need to grab these Multidropdown options from the URL and filter them separately. There’s a few ways to approach this:

  1. Limit the number of multidropdown options a user can input (a realistic number, like 3, or 5) so that you can instead use individual URL paremeters:
  • Key: c1 = Multidropdown cuisine’s value: item #1’s display
  • Key: c2 = Multidropdown cuisine’s value: item #2’s display
  • etc

And then when filter the repeating group, add these parameters.

  1. If you don’t want to create individual parameters, you could instead send the data to the URL, with each text separated by an underscore: _ or similar. Instead of pointing the constraint directly to the Get Data from URL, instead you would have a hidden repeating group (“Hidden RG URL Cuisine Text”) set to Text, Get Data from URL, Split by: _. Have another hidden repeating group of type Option Set Cuisine (Hidden RG Cuisine). Have it’s data source be of type Option Set Cuisine:filtered. Constraint: This Cuisine's Display is in Hidden RG's List of Texts

Now in your Search for Users constraint, unfortunately you’re still limited to individual constraints if you want to avoid using an Advanced filter:

  • Cuisine type contains: Hidden RG Cuisine’s list of Cuisine, item #1
  • Cuisine type contains: Hidden RG Cuisine’s list of Cuisine, item #2
  • Cuisine type contains: Hidden RG Cuisine’s list of Cuisine, item #3
  • etc
2 Likes

You have been a tremendous help msgiblin. Do you have a “Buy me a coffee” page, I would like to donate to you.

1 Like

Happy to help! I don’t have a Buy Me A Coffee but I love the idea :rofl: thanks for the kind words!

1 Like

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