Hello eveyrone,
I tried to make a filter with an URL parameter.
Below a picture to guide you what the filter looks like :
So it is possible to get several parameter for a same filter. For example, we could look for a person who gets experience in Real Estate and also for selling cars. So we click on two checkbox.
The field to filter is a lit of an option set (OS_Type) as you can see below :

First, I created a custom set to send the Option set in a group:
Then, I created the workflow to send the parameter in the URL , as below :
It is not efficient I know.
So I tried to make the filter as below because eI read a post on the forum to advise :split(,) but it doest not work :
Do you have an idea how could I make it ?
Ask me questions if you need to understand better,
Thank you so much
Thomas
Hello Timothy,
Thank you for your quick answer.
So I did exactly the same than you, but it doest not work on my side. I think it is because my field in the database is a list of option set (os_type).
Below you can see the variable as you did for collecting the URL parameter :
And then you can see the variable to match the list of the option set and the last variable :
When we check the debug text as you did on my front page, we can see Bubble collects only the first parameter that we have selected with the checkbox “Categorie”. As you can see below, the URL parameter says there are two parameters inside the URL but in the debug, there is only one.
However, the first variable collect all the parameters :
And below, we can see the filter for the repeating group, but sure it does work because the last variable gets only one parameter.
I share you below the preview and the editor of my app for helping you.
The interisting elements for you are
- RepeatingGroup Profil agent_co
- var- RG category os
- var - RG category text
Thank you so much again,
Thomas
The URL parameters need to match the Display of the OS Option Exactly.
Currently, in your case they don’t.
Your query string (decoded) is:
Immobilier, Automobile
(note the space between the comma and Automobile).
So your list of texts (once split by “,”) is:
Immobilier
Automobile
(again, note the leading space before the word Automobile)
So, in your OS RG it’s trying to find an Option with the Display Automobile
instead of Automobile
which is why that option is not recognised.
Remove the space from the URL and it works.
So just make sure your query string does not contain a space between each Option (note: bubble always adds a space between list items when displaying them as text, so use :join with “,” to manually override that default behaviour - or split with ,
instead of ,
).
It works so well.
And very interisting to know it.
Thank you
1 Like