Free Estimate
Worry free and absolutely no obligation on estimates for any one of our services.
function webLeadFormSubmit(event) {
event.preventDefault();
document.getElementsByClassName('webLeadForm__submit')[0].disabled = true;
const leadData = new FormData(event.target);
const fetchPromise = fetch('https://url.avanan.click/v2/r01/_https://leads.acculynx.com/api/leads/submit-new-lead?formID=9be83262-a10a-4ff5-92f6-25ceee7fde66___.YXAzOmxvdWdlZWs6YTpvOmQ0M2NmNzQxYmY5OWU0YzljZmIzZWJiMTIxYTNlZmUwOjc6Y2VkODphNmExNTI1ZjAzY2Q3ZDExMDlkOTU5MWJjMzJiYjU2YjVhN2M5ZTI0YjIxYjUwMDA4N2U0YTVlM2JkZjZlZDU0OnQ6VDpO', { method: 'post', mode: 'no-cors', body: leadData });
fetchPromise.then(response => {
console.log('WebLeadForm Submit Success');
console.log(response);
document.getElementById('webLeadFormElem').style.visibility = 'hidden';
document.getElementById('webLeadFormMessageElem').style.display = 'flex';
})
.catch(error => {
console.log('WebLeadForm Submit Error: ' + error);
document.getElementsByClassName('webLeadFormsubmit')[0].disabled = false;
});
return false;
}