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/"); */ }