// Check if the user has already submitted the email let hasSubmitted = $w.sessionStorage.getItem("emailSubmitted"); if (!hasSubmitted) { // If not, show the lightbox $w("#lightbox1").show(); } // Function to set cookie when email is submitted function storeEmail() { $w.sessionStorage.setItem("emailSubmitted", "true"); $w("#lightbox1").hide(); // Hide the lightbox after submission }
top of page
bottom of page