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.
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
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