Dropdown menu filter

I added a “onClick” function, thinking that when an option would be selected, it would make the filter work, but obviously I was wrong.

The dropdown menu is working, but whenever I try to select an item from it, all the cards disappear.

This is what my code looks like now:


And here’s the link to the published page: https://marcosviniciusmo.wixsite.com/meusite1/ourexperiencetest1/

Hello

the problem here is in the way you’re setting the filter and getting the value.
-you need to get the value on change not on click
-you have to filter based on the field key

export function dropClient_change(event) {
        $w("#OurExpData").setFilter(wixData.filter().contains("clientType", $w('#dropClient').value));
}

Best
Massa