Please complete the following fields, and submit your information.




jQuery(document).ready(function($) { // First grab email address from url param and set in form fields const queryString = window.location.search; //console.log(queryString); const urlParams = new URLSearchParams(queryString); const email = urlParams.get('email') console.log(email); $('#email').val(email); // Check Required Checkboxes validation $(function(){ var requiredCheckboxes = $('.options :checkbox[required]'); requiredCheckboxes.change(function(){ if(requiredCheckboxes.is(':checked')) { requiredCheckboxes.removeAttr('required'); } else { requiredCheckboxes.attr('required', 'required'); } }); }); function webHookAjax(e){ e.preventDefault(); var $form = $("form").serialize(); var url = '/webhooks/contact-step-3-webhook.php'; //console.log ('Step 3 URL: '+url); //console.log ($form); var jqxhr = $.ajax({ url: url, method: "POST", data: $form, beforeSend: function(){ $('#loader').html('Submitting'); } }) .done(function(msg){ $('#loader').html(msg); console.log('Webhook Contact Step 3 Done'); var link = '/thank-you/'; // console.log (link); window.location.href = link; }) .fail(function() { // console.log( "error" ); }) .always(function() { //console.log( "complete" ); }); } $('#contact-step-3').on('submit',webHookAjax); });
Scroll to Top