From 3bc28dc5e64a62b6fd30916f49d2a7a86eb24a62 Mon Sep 17 00:00:00 2001 From: dereklseitz Date: Tue, 26 Aug 2025 00:45:59 -0500 Subject: [PATCH] . --- src/scripts/contact-form.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/scripts/contact-form.js b/src/scripts/contact-form.js index f2b33d7..a3ca72c 100644 --- a/src/scripts/contact-form.js +++ b/src/scripts/contact-form.js @@ -62,15 +62,15 @@ 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 = form.querySelector('#privacy-policy').checked; + const privacyAccepted = getElementById("privacy-policy").checked; let hasErrors = false; // Validation logic... - if (!privacyAccepted) { - showMessage("Privacy Policy must be accepted before submitting."); - hasErrors = true; - } + //if (!privacyAccepted) { + // showMessage("Privacy Policy must be accepted before submitting."); + // hasErrors = true; + //} if (!firstName) { showError("first-name", "Please enter your first name.");