@guintoallona
I took a second look onto your CODE → HOUSTEN WE HAVE A PROBLEM ![]()
I have tried to give your CODE some structure, although not everything was clear
Try to replace your old with this one and test it.
import wixData from 'wix-data';
$w.onReady(function () {
$w('#clear').onClick(() => {
$w("#locationDropdown").value = undefined
$w("#dropdown3").value = undefined
$w("#dropdown4").value = undefined
$w("#buildingdataset").setFilter(wixData.filter().eq('typicalFloorPlate', location))
$w("#buildingdataset").setFilter(wixData.filter().eq('location', location))
});
$w('#search').onClick(() => {
$w("#buildingdataset").setFilter(wixData.filter()
.contains("location", $w("#locationDropdown").value)
.between("typicalFloorPlate", parseFloat($w("#dropdown4").value), parseFloat($w("#dropdown3").value)))
.then((results) => {console.log("Dataset is filtered");
$w("#repeater").data = results.items;
})
.catch((err) => {
console.log(err);
});
$w("#repeater2").expand();
});
});