Hello Corvid community! This is my first attempt at implementing Corvid on a Wix site. I’m not a stranger to code (HTML & CSS), but I’m certainly not an expert especially when it comes to scripting. I would greatly appreciate if someone could help or at least point me in the right direction. I’ve searched high and low before making this post, but it seems like no other forum posts, tutorials, etc. have fully addressed what I’m trying to do.
I’m trying to setup a text field for user input that, after pressing a submit button, checks their input value against a list of values in a database. If the input is in the database, it should redirect them to another page on the site. If their input is not in the database, it should display an error message.
Thanks!
Hi,
You can process or check a users input against the values that already exist in your database collection by using Data Hooks. You can find a tutorial on how to do this here . Just make sure you read the “Prerequisites” section in the tutorial to make sure you are all set up to create the data hook.
Keep in mind that when you create the data hook, you will want to include a database query that checks the database values and then will continue with the conditional statement that you create after the database collection is checked. For information on using and setting up a query, click here .
I hope this information was helpful!
Best regards,
Edward
Thanks Edward! I’ll check out those links and report back with my results.
Edward, thanks again for the links. I also found another forum post that describes a similar situation and wanted to add a link here for others to reference.
https://www.wix.com/corvid/forum/community-discussion/postal-code-check-in-the-database