I’m looking to create a passcode protected page, but I would like people to access it by entering their email address that they had previously entered on a form - if it’s an email address that was not entered into the form, it will not let them in.
I assume your form is submitted to a database collection holding all email addresses.
If so, use ’ wixData.query() ’ to check if the email exists when clicking a button (set a button onclick() )
Everything worked perfectly when I did this through preview - however once the page was published, nothing happens. Any reason that could be happening?