diff --git a/src/about.njk b/src/about.njk index 2d01e1b..f0795d4 100644 --- a/src/about.njk +++ b/src/about.njk @@ -121,7 +121,6 @@ pageScripts: type="checkbox" id="privacy-policy" name="privacy-policy" - required aria-required="true" aria-describedby="privacy-policy-description" > diff --git a/src/scripts/contact-form.js b/src/scripts/contact-form.js index a3ca72c..fec33a0 100644 --- a/src/scripts/contact-form.js +++ b/src/scripts/contact-form.js @@ -62,7 +62,7 @@ form.addEventListener("submit", function(event) { const phone = document.getElementById("phone").value.trim(); const contactMethod = document.querySelector('input[name="contact-method"]:checked')?.value; const message = document.getElementById("message").value.trim(); - const privacyAccepted = getElementById("privacy-policy").checked; + const privacyAccepted = document.getElementById("privacy-policy").checked; let hasErrors = false;