fixing health form submissions not switching pages
This commit is contained in:
		
							parent
							
								
									d2d1c2e303
								
							
						
					
					
						commit
						08448cf6e5
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
         }
 | 
			
		||||
     };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue