I am setting up a dynamic page with a repeater and would like to setup a drop down that filters the results in the repeater to only those with items based on the drop down selection. I add the code below but not getting any results when I change the input on the drop down.
I have tried but the repeater does not display.
import { wixData } from ‘wix-data’ ; export function search_click(event, $w) { //this filters the dataset using one filter which pulls from serviceType column in my DB table $w( “#dbServices” ).setFilter(wixData.filter().contains( “serviceType” , $w( ‘#iptServices’ ).value)).then((results) => {console.log( “dataset is now filtered!” ); $w( “#listRepeater” ).data = results.item; }). catch ((err) => { console.log(err);}); $w( “#listRepeater” ).expand();}