Looking for some help please.I have a dropdown box → when values selected,takes customers to repeater page where should be filtered the results,according the values selected from the dropdown.I am getting an error and not sure anymore how to fix it. Thank you
The repeater page code
//exports the button from the search page button
export function button2_click() {
wixData.filter();
}
$w.onReady(function () {
wixData.query(“Tutors”)
$w(" #dataset1 ").setFilter( wixData.filter()
.eq(“fieldOfStudy”, local.getItem(“field”))
.eq(“location”, local.getItem(“location”))
)
.find()
.then(res => {
$w(’ #repeater1 ').data = res.items;
});})
THE ERROR :
TypeError: $w(…).setFilter(…).find is not a function