Lightbox form query

Hi. I’m trying to use a lightbox to act as an entry checkpoint for my site. Essentially, I have a field in a database called ‘App’ and I want a visitor to my site to be greeted by a lightbox that prompts him to enter a verification number. The verification number should validate existence of the value against the ‘App’ field and if found, close the lightbox and allow access. If not found, it should display an error ‘Invalid code.’

Complete noob for Wix - so any help would be appreciated.

Thanks in advance!
Cheers

Hi,
I would start with going through the example here of a login page. I was not sure about the logic of the verification number added to the lightbox. Do you have a difference collection with verification numbers?
You can add a query to the onClick event of the login button to check if a specific value exist in the collection, before redirecting to the relevant page.

I hope it helps,
Tal.