@guintoallona
Because you are using the dataset, i would suggest you to connect it also to your dropdowns and to your repeater, than you will need just the following code…
import wixData from 'wix-data';
$w.onReady(function () {
$w('#clear').onClick(() => {
$w("#dropdown1").value = undefined
$w("#dropdown2").value = undefined
$w("#dropdown3").value = undefined
$w("#buildingdataset").setFilter(wixData.filter())
});
$w('#search').onClick(() => {
$w("#buildingdataset").setFilter(wixData.filter()
.contains("firstName", $w("#dropdown1").value)
.contains("lastName", $w("#dropdown2").value)
.contains("nationality", $w("#dropdown3").value))
.catch((err) => {console.log(err);});
$w("#repeater").expand();
});
});
Take a quick look onto this example here…
https://mt2-king.wixsite.com/filter-tool/csv-test
The shown code is working on this site.