From 95d2cead9128590075003b91cd206c3b15f05a66 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 9 Jan 2024 21:36:44 -0600 Subject: [PATCH] adding debug stuff and fixing bug in letting form validate --- layouts/shortcodes/health-form.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/shortcodes/health-form.html b/layouts/shortcodes/health-form.html index c9da5fd..5382cc5 100644 --- a/layouts/shortcodes/health-form.html +++ b/layouts/shortcodes/health-form.html @@ -14,6 +14,7 @@ document.getElementById('warning-insurance').style.visibility = 'visible'; document.getElementById('warning-insurance').style.height = ''; document.getElementById('warning-insurance').style.margin = ''; + console.warn("med checked but insurance empty"); return false; } else { document.getElementById('warning-insurance').style.visibility = 'hidden'; @@ -25,6 +26,7 @@ document.getElementById('warning-policy').style.visibility = 'visible'; document.getElementById('warning-policy').style.height = ''; document.getElementById('warning-policy').style.margin = ''; + console.warn("med checked but policy empty"); return false; } else { document.getElementById('warning-policy').style.visibility = 'hidden'; @@ -36,6 +38,7 @@ document.getElementById('warning-image').style.visibility = 'visible'; document.getElementById('warning-image').style.height = ''; document.getElementById('warning-image').style.margin = ''; + console.warn("med checked but no image"); return false; } else { console.warn(document.getElementById("image")); @@ -48,8 +51,10 @@ document.getElementById('warning').style.visibility = 'visible'; document.getElementById('warning').style.height = ''; document.getElementById('warning').style.margin = ''; + console.warn("Agreement not checked"); return false; } + return true; }; function submitForm(e) {