{ const emailInput = document.querySelector("input[name='email']"); if (emailInput && emailInput.value === "") { emailInput.value = storedEmail; emailInput.dispatchEvent(new Event("input", { bubbles: true })); console.log("✅ Autofilled HubSpot email field"); } else { console.log("⚠️ Email input not found or already filled"); } // Optional: hide the field document.querySelectorAll(".hs_email").forEach((field) => { field.style.display = "none"; }); }; const observer = new MutationObserver(() => { const emailInput = document.querySelector("input[name='email']"); if (emailInput) { autofillEmail(); observer.disconnect(); } }); observer.observe(document.body, { childList: true, subtree: true }); // Backup in case observer misses it setTimeout(() => { console.log("⏰ Running fallback autofill"); autofillEmail(); }, 800); });

Data & privatlivspolitik

Tryk på hver af menupunkterne neden for at læse mere om vores data- og privatlivspolitikker:

Cookies
Logdata
Privatlivspolitik