HELPPPP! User Input Filter on Dynamic Page

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();}

Hi there :wave:t2: Could you explain your setup a bit more? It looks like you have one dropdown and search button, trying to filter a repeater when the search button is clicked?
I assume “#iptServices” is the dropdown? Do the dropdown values exactly match the values in the database?
I see you are console logging the errors, what errors do you get in the console?

The more detail you provide the better help you will receive!