updating the mission trip forms submission code
This commit is contained in:
		
							parent
							
								
									e497d928f3
								
							
						
					
					
						commit
						b0dfc4e3b5
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -12,11 +12,16 @@
 | 
			
		|||
     data.append("age", age);
 | 
			
		||||
 | 
			
		||||
     var xhr = new XMLHttpRequest();
 | 
			
		||||
     xhr.onreadystatechange = function() {
 | 
			
		||||
         if (this.readyState == 4 && this.status == 200) {
 | 
			
		||||
             window.location.href = '/thankyou/';
 | 
			
		||||
         }
 | 
			
		||||
     };
 | 
			
		||||
     xhr.open("POST", "https://n8n.tfcconnection.org/webhook/mt-application");
 | 
			
		||||
     xhr.send(data);
 | 
			
		||||
     console.log(data);
 | 
			
		||||
     console.log("Hallo!");
 | 
			
		||||
     return false;
 | 
			
		||||
     /* return false; */
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
 function calculate_age(dob) { 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue