I already have a database with all the inputs for the field: “ticket number”, and basically I wanted to be able to check my input against this database. If it exist in the database then the “submit” button will redirect me to another page, if not an error message will occur. I am not sure how to go about doing this.
1 Like
You can create a query to your database and check if there are any items that match the input value using eq() . Then you’ll need to add an If statement that should throw an error if there are no results for the query.
You can find more information in these references:
https://www.wix.com/corvid/reference/wix-data.html#query
https://www.wix.com/corvid/reference/wix-data.WixDataQuery.html#eq
Thank you, I will try that