From 08448cf6e55d0f5d0693245f3c5d2d6bbbf3e8ee Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 23 Mar 2023 11:54:46 -0500 Subject: [PATCH] fixing health form submissions not switching pages --- layouts/shortcodes/health-form.html | 3 ++- layouts/shortcodes/mt-form.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/health-form.html b/layouts/shortcodes/health-form.html index 1134cbc..544ab7d 100644 --- a/layouts/shortcodes/health-form.html +++ b/layouts/shortcodes/health-form.html @@ -132,7 +132,8 @@ document.addEventListener('DOMContentLoaded', dated); const myUrl = new URL(window.location.toLocaleString()); - const mtRegistration = myUrl.searchParams.get('registration'); + const mtRegistration = myUrl.searchParams.get('mtregistration'); + const registration = myUrl.searchParams.get('registration'); console.log(mtRegistration); diff --git a/layouts/shortcodes/mt-form.html b/layouts/shortcodes/mt-form.html index 66fd4a0..6d3c29d 100644 --- a/layouts/shortcodes/mt-form.html +++ b/layouts/shortcodes/mt-form.html @@ -19,7 +19,7 @@ // This is how to send them. window.location.href = '/thankyou/'; var payment = document.getElementById('registration').value; - window.location.href = '/mt-health-form?registration=' + payment; + window.location.href = '/mt-health-form?mtregistration=' + payment; // Need to eventually get the user here: https://secure.myvanco.com/L-Z772/campaign/C-13DM3 } };