From cba16088c55928f3107c47210f18842b82243c37 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 20 Dec 2022 14:33:10 -0600 Subject: [PATCH] fixing tetanus-shot date validation --- layouts/shortcodes/health-form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/health-form.html b/layouts/shortcodes/health-form.html index 7460ff1..5a517a0 100644 --- a/layouts/shortcodes/health-form.html +++ b/layouts/shortcodes/health-form.html @@ -13,7 +13,7 @@ if (data.get("tetanus-shot") === "") { console.warn("NO DATE FOR TETANUS SHOT"); - data.set("tetanus-shot", "0000-00-00"); + data.set("tetanus-shot", "1111-11-11"); console.log(data.get("tetanus-shot")); } @@ -59,6 +59,7 @@ if (xhr.status === 200) { console.log('SUCCESS', xhr.responseText); + window.location.href = "/thankyou/"; } else { console.warn('request_error', xhr.responseText); } @@ -67,7 +68,6 @@ xhr.send(data); console.log(data); console.log("Hallo!"); - window.location.href = "/thankyou/"; /* window.location.replace("https://tfcconnection.org/thankyou/"); */ }