updates making all forms work in production
This commit is contained in:
parent
02f73ff7d1
commit
5e770a4ef5
|
@ -7,7 +7,13 @@
|
||||||
const data = new FormData(form);
|
const data = new FormData(form);
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open("POST", "https://n8n.tfcconnection.org/webhook-test/mt-church-form");
|
xhr.onreadystatechange = function() {
|
||||||
|
if (this.readyState == 4 && this.status == 200) {
|
||||||
|
// Logic directing where to send the user after form submission based on results.
|
||||||
|
window.location.href = '/thankyou/';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
xhr.open("POST", "https://n8n.tfcconnection.org/webhook/mt-church-form");
|
||||||
xhr.send(data);
|
xhr.send(data);
|
||||||
console.log(data);
|
console.log(data);
|
||||||
console.log("Hallo!");
|
console.log("Hallo!");
|
||||||
|
|
|
@ -7,7 +7,13 @@
|
||||||
const data = new FormData(form);
|
const data = new FormData(form);
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open("POST", "https://n8n.tfcconnection.org/webhook-test/mt-parent-form");
|
xhr.onreadystatechange = function() {
|
||||||
|
if (this.readyState == 4 && this.status == 200) {
|
||||||
|
// Logic directing where to send the user after form submission based on results.
|
||||||
|
window.location.href = '/thankyou/';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
xhr.open("POST", "https://n8n.tfcconnection.org/webhook/mt-parent-form");
|
||||||
xhr.send(data);
|
xhr.send(data);
|
||||||
console.log(data);
|
console.log(data);
|
||||||
console.log("Hallo!");
|
console.log("Hallo!");
|
||||||
|
|
|
@ -7,7 +7,13 @@
|
||||||
const data = new FormData(form);
|
const data = new FormData(form);
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open("POST", "https://n8n.tfcconnection.org/webhook-test/mt-teacher-form");
|
xhr.onreadystatechange = function() {
|
||||||
|
if (this.readyState == 4 && this.status == 200) {
|
||||||
|
// Logic directing where to send the user after form submission based on results.
|
||||||
|
window.location.href = '/thankyou/';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
xhr.open("POST", "https://n8n.tfcconnection.org/webhook/mt-teacher-form");
|
||||||
xhr.send(data);
|
xhr.send(data);
|
||||||
console.log(data);
|
console.log(data);
|
||||||
console.log("Hallo!");
|
console.log("Hallo!");
|
||||||
|
|
Loading…
Reference in a new issue