fixing health form submissions not switching pages

This commit is contained in:
Chris Cochrun 2023-03-23 11:54:46 -05:00
parent d2d1c2e303
commit 08448cf6e5
2 changed files with 3 additions and 2 deletions

View file

@ -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);
</script>

View file

@ -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
}
};