top of page
Forum Posts
Levi Haegebaert
Mar 04, 2019
In Coding with Velo
Hi, could someone help with my query. When the user fills in a word and click search, the query should search for a identical match in the database. I already tried several options but they all failed. When succeeded, the user should see a message "OK", when not succeeded, they should see a message "Nothing found". This is my code, I tried several alternatives but they all failed. Thanks in advance for the help. iboxcode: name of the input box Boxcodes: name of the database title: name of the colomn where the query has to search resultbox: the text box that should contain the message for the user import wixData from "wix-data";
export function Claim(event) {
wixData.query("Boxcodes")
.eq("title", $w("#iboxcode").value)
.find()
.then(res => {
$w("#resultbox").value = res.items;
});
}
0
7
677
Levi Haegebaert
More actions
bottom of page