Thank you! Your request has been submitted.

We look forward to meeting you and can’t wait to help you grow your operation. 

Suggested Reading

var leadValues = {}; var uri = decodeURIComponent(document.location.search.replace(/\+/g, " ")); var urlParams = new URLSearchParams(uri); var entries = urlParams.entries(); var valid = false; for (pair of entries) { leadValues[pair[0]] = pair[1]; if (pair[0].toLowerCase().includes("email") && pair[1].includes("@")) { leadValues[pair[0]] = pair[1].replaceAll(" ", "+"); // fix spaces for emails valid = true; } } if (valid) { ChiliPiper.submit(leadValues["CPTenantDomain"], leadValues["CPTenantRouter"], { map: true, lead: leadValues, }); console.log(leadValues); }