hello there,
i know i have been requesting this for a while but unfortunately i am not getting any assistant
anyway
this is the new test and it give me an error !
export function Search_click(event, $w) {
// searching based on user selection, if not selected then check other input
wixData.query('Property').contains('propertyCat', $w('#iCat').value)
.or(wixData.query('Property').contains('propertyFunction', $w('#iFunction').value))
.or(wixData.query('Property').contains('propertyType', $w('#iType').value))
.or(wixData.query('Property').contains('price', $w('#iPrice').value))
.and(wixData.query('Property').eq('avaliability', true))
.find()
.then(
(results) =>
{
let query = results.query;
$w('#repeater1').data = query;
}
)
.catch((error) => {
let erMsg = error.message;
let code = error.code;
})
}
what it should do is, a user have multiple drop-down selectors, he/she is prompted to select and filter as per his selection (so its like or function … this or that)
so hope to get some help !