Display search with multidropdown in a repeating group?

Hi Bubblers !

I am stuck with something that might be simple but don’t understand how it work.

My App has users that are able de create Ads.
An ads contains different data (mainly text field).

I Have a page with a repeating group that show every ads.
At the top of the page I have different search field (geographical searchbox and multidropdown).

I’m trying to set that the repeating group only show ads that contains values that are selected in the multidropdown.

Let’s say for example my ads contains a field “number of room”, data is text.
I put a multidrpdown with static option : 1 2 3 4 5

Then in the RG i put Search for annonces, with a constraint that says number of rooms = multidropdowns value…

It doesn’t work. It works only for the first value of the multidropdown, and when there’s a second selected, erverything disappear.
I tried in a different way with advanced filter… Doesn’t work as well.

Could somebody help please :’(

Up
Nobody knows how to do it ?

try a constraint that says number of rooms IS IN multidropdown’s value

did you try this way?

There are a number of things I’d change about this structure, but for your specific example, do Search for ads with constraint "number of rooms is in multidropdown’s value

Thanks, ill try it.
Can you precise what changes you will do in the structure please ?
I know im not doing it the best way but cant find out what is the best
Thanks a lot

Well, for the numbers example, I’d make the Number of Rooms field in your Ad type a Number (not a text) so that your search can use math with your search constraints, but I’m not sure if that was a real constraint for your Ads.

Yes,
The problem now is that :
By default, multidropdown value is empty.
So, on page load, nothing appears in the RG, as multidropdown is empty…
Once you select one or many values, ads start to shows up.

What Id like to is to have every ads on page loads, and then to filter it with the multidropdown…
I still can’t do it. Any ideas ?

Yeah, I know this problem. It wud be a simple condition to the multidropdown constraint to solve it.

The work around was to use a button to trigger the filter (and not automatically). Then you send data to the RG with the constraints. Have a look here:

Its not the cleanest way, but it works.

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