Chat with us, powered by LiveChat

Get a quick quote with our pricing calculator

Referral Lead Submission

const referralUrl = "https://www.workbooks.com/d8/partners/referral/dedicated"; const urlParams = new URLSearchParams(window.location.search); const urlParamNames = [ ["company", "company"], ["companyName", "name"], ["industry", "industry"], ["campaignid", "campaignid"], ["assignedto", "assignedto"], ]; let referralUrlParams = ""; for(i = 0; i < urlParamNames.length; i++){ if (urlParams.has(urlParamNames[i][0])){ if (referralUrlParams == ""){ referralUrlParams += "?" + urlParamNames[i][1] + "=" + urlParams.get(urlParamNames[i][0]); } else{ referralUrlParams += "&" + urlParamNames[i][1] + "=" + urlParams.get(urlParamNames[i][0]); } } else{ console.log("Missing: " + urlParamNames[i][0]); window.location.href = "https://www.workbooks.com/about-us/become-referral-partner/"; break; } } document.getElementById("referralFormFrame").src = referralUrl + referralUrlParams;