Hey guys,
I have two dropdown filters displayed on a dynamic page with a repeater.
Both filters work independently from each other, and I want to keep it like that (No need for multiple selection like in a hotel search).
When users press on one filter, the repeater displays the data correctly, BUT unfortunately, the other filter still displays its value → So users get confused - seeing two filter selections but only results of one filter!
What I probably need is a line of code for the following:
If click on one dropdown filter → Set other filter dropdown back to default.
And the other way round.
The current code looks like this:
export function dropdownTopic_change(event) {
let searchfocusTopic = $w( “#dropdownTopic” ).value
$w( ‘#dynamicDataset’ ).setFilter(wixData.filter().eq( “focusTopic” , searchfocusTopic));
export function dropdownfiltercompanyname_change(event) {
let searchcompany = $w( “#dropdownfilter123” ).value
$w( ‘#dynamicDataset’ ).setFilter(wixData.filter().eq( “companyName” , searchcompany));
Anyone who can help? I would highly appreciate!
Martin