Please help, search bar

Hi Elise

I probably should have mentioned, you will need to add the ‘onKeyPress’ on the input bar through the properties panel, and then add the following code in between the curly brackets. Have you done it that way?

Then make sure the key (locationTitle) is the same as your database field key and the input’s id is the same as your input’s id ( iActivity ) in case I might have mis spelled it…


if(event.key === 'Enter'){ 
$w("#dataset1").setFilter( wixData.filter() 
 .contains("locationTitle", $w("#iActivity).value) 
); 
}

Tiaan