rayc9
October 21, 2019, 7:38am
1
Hi guys,
i need help with this search bar function.
So basically ive tried and copied codes out there and none of them work.
So on the product search. i want to be able to type in a product name and then press enter to search to show up the product i typed in.
Please help
thanks,
ray
rayc9
October 23, 2019, 8:24am
2
I dont have a current code.
None of the codes work.
it has an underline saying it doesnt function.
but heres the code i used
Import wixData from ‘wix-data’ ;
$w.onReady (function () {
//TODO: write your page related code here…
}) ;
export function input1_keyPress(event, $w) {
let searchValue = $w(“#input1 ”).value;
$w("#dataset1 ).setFilter(wixData.filter().contains(‘name’, searchValue).
or(wixData.filter().contains(‘city’, searchValue))) ;
}
rayc9
October 23, 2019, 8:42am
3
this is the error i get with this code i used. please see below with ** comments i made.
**parsing error: unexpected token wixData >> Import wixData from ‘wix-data’ ;
**whole row is not a valid sector >> $w("#dataset1 ).setFilter(wixData.filter().contains(‘name’, searchValue).
rayc9
October 23, 2019, 8:53am
4
so what im tyring to get the seach function to work with shop? is this possible without a repeater?