bug in health form
This commit is contained in:
parent
9e5acd6aa5
commit
64917db638
4 changed files with 14 additions and 16 deletions
|
@ -84,16 +84,16 @@
|
|||
body: data
|
||||
}).then((res) => {
|
||||
console.log(res);
|
||||
/* if (res.ok) {
|
||||
* if (mtRegistration === 'now')
|
||||
* window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13DM3';
|
||||
* else if (registration === 'now')
|
||||
* window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13JPJ';
|
||||
* else if (registration === 'full')
|
||||
* window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13JQE';
|
||||
* else
|
||||
* window.location.href = '/thankyou/';
|
||||
* } */
|
||||
if (res.ok) {
|
||||
if (mtRegistration === 'now')
|
||||
window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13DM3';
|
||||
else if (registration === 'now')
|
||||
window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13JPJ';
|
||||
else if (registration === 'full')
|
||||
window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13JQE';
|
||||
else
|
||||
window.location.href = '/thankyou/';
|
||||
}
|
||||
});
|
||||
|
||||
// For use in prod
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
const age = calculate_age(birthdate);
|
||||
data.append("age", age);
|
||||
|
||||
/* let base = "https://api.tfcconnection.org/local-trip-form"; */
|
||||
let base = "http://localhost:4242/mt-form";
|
||||
let base = "https://api.tfcconnection.org/local-trip-form";
|
||||
/* let base = "http://localhost:4242/mt-form"; */
|
||||
|
||||
fetch(base, {
|
||||
method: "POST",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue