Password protected page

Hey,

You could set this up using Corvid.

To do it you would have to create separate statements for each employee number so if there are a lot of employees it could be a lot of code and a lot of pages.

Use the to() function from the wix-location API to redirect the site visitors after entering their employee numbers.

Something like this:

import wixLocation from 'wix-location';

$w.onReady(function () {

});

export function button1_click(event) {
 if ($w("#input1").value = (12345).toString())
   wixLocation.to("/page-name")
if ($w("#input1").value = (67890).toString())
   wixLocation.to("/other-page-name")
}

Hope this helps!

Dara | Corvid Team