Hello guys, I tried to make a search box for my site but I doesn't understand how to do it.
I found this code around the forum but it says that .text doesn't exist on #results1, thanks.
import wixData from 'wix-data';
export function productbutton_click(event) {
wixData.query("Products").eq("Title","Sku", $w("#input11").value).find()
.then((result)=>{
$w("#results1").text = result.items[0].results;
});
}
@Fraspace5
It seems like in your "results" page, in the 'ViewportEnter' function you defined the filter but did not deploy it on your Dataset.
Also, in your home page there's a use of an invalid selector.
Fix those and see if its working and let me know.
Doron.