Hi, you can try something like this
import wixData from"wix-data";
let timerID = -1;
$w.onReady(function () {
$w('#iTitle').onKeyPress((event)=>{
if(timerID>0){
//reset the timer if 2 keys are pressed in < 200ms
clearTimeout(timerID)
}
timerID = setTimeout(() => {
//executed 200 ms after the last input key
filter(event.target.value);
}, 200);
})
});
let lastFilterTitle;
function filter(title) {
if(lastFilterTitle !== title) {
lastFilterTitle = title;
$w('#dataset1').setFilter(wixData.filter().contains('title', title));
}
}
Probably in the filter.contains you have to use the column key ‘title’ instead of ‘Title’