fixing health form submissions not switching pages
This commit is contained in:
parent
d2d1c2e303
commit
08448cf6e5
|
@ -132,7 +132,8 @@
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', dated);
|
document.addEventListener('DOMContentLoaded', dated);
|
||||||
const myUrl = new URL(window.location.toLocaleString());
|
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);
|
console.log(mtRegistration);
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// This is how to send them. window.location.href = '/thankyou/';
|
// This is how to send them. window.location.href = '/thankyou/';
|
||||||
|
|
||||||
var payment = document.getElementById('registration').value;
|
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
|
// Need to eventually get the user here: https://secure.myvanco.com/L-Z772/campaign/C-13DM3
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue