Hi everyone,
I’m in the middle of making a website for a university project. We have four different pages that are supposed to only be accessible when a person takes a quiz and gets a password, and although I can just “link” them with buttons, I thought it would be perfect if I could figure out how to have one password-entry location that would reroute to one of the four hidden pages depending on which password is entered. Has anyone done anything similar with any success?
I don’t get it but try this
#input1 - input for typing the password
Here assuming that “ShouldGo” is the password for redirecting to the page - overview.
and “DontGo” is the password tot redirect to the page overlook.
if($w (“#input1”).value = “ShouldGo”) {
wixLocation.to(/overview´); } else { if($w ("#input1").value = "DontGo") { wixLocation.to(
/overLook´);
}