Credit.org Site Leads.DR-Appointment
  • Credit.org Debt Appointment

    By clicking "Submit" you are providing express written consent for Credit.org and third party vendor Identity Intelligence Group, LLC and Credit Swag Ventures, Inc. dba Creditanddebt.org to e-mail, call or text you (including by automated means, e.g., through an automatic telephone dialing system or through the use of pre-recorded or artificial voice messages), to any telephone number you provide even if your telephone number is listed on any internal, corporate, state, federal, or national Do-Not-Call list for any purpose, including marketing. Texts include SMS and MMS - charges may apply. This consent to such communications is not required as a condition to obtain any goods or services.
(function () { "use strict"; /* -------------------------------------------------- CONFIG ARRAYS (Zoho field names) -------------------------------------------------- */ var zf_MandArray = [ "SingleLine", "PhoneNumber_countrycode", "Email", "Number", "Dropdown" ]; var zf_FieldArray = [ "SingleLine", "PhoneNumber_countrycode", "Email", "Number", "Dropdown", "DecisionBox" ]; /* -------------------------------------------------- UTILITIES -------------------------------------------------- */ function getForm() { return ( document.forms["form"] || document.querySelector("form") || null ); } function showError(name) { var el = document.getElementById(name + "_error"); if (el) el.style.display = "block"; } function validateEmail(el) { if (!el || !el.value) return true; var emailRegex = /^[\w]([\w\-.+&'/]*)@([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,22}$/; return emailRegex.test(el.value.trim()); } /* -------------------------------------------------- VALIDATION LOGIC -------------------------------------------------- */ function checkMandatory() { var form = getForm(); if (!form) return true; for (var i = 0; i < zf_MandArray.length; i++) { var field = form.elements[zf_MandArray[i]]; if (!field) continue; var empty = (field.value && field.value.trim() === "") || (field.nodeName === "SELECT" && field.value === "-Select-") || (field.type === "checkbox" && !field.checked); if (empty) { field.focus(); showError(zf_MandArray[i]); return false; } } return true; } function validCheck() { var form = getForm(); if (!form) return true; for (var i = 0; i < zf_FieldArray.length; i++) { var field = form.elements[zf_FieldArray[i]]; if (!field) continue; if ( field.getAttribute("checktype") === "c5" && !validateEmail(field) ) { field.focus(); showError(zf_FieldArray[i]); return false; } } return true; } /* -------------------------------------------------- PUBLIC SUBMIT HANDLER (Zoho hook) -------------------------------------------------- */ window.zf_ValidateAndSubmit = function () { var valid = checkMandatory() && validCheck(); /* SalesIQ integration – safe guarded */ if ( valid && typeof window.isSalesIQIntegrationEnabled !== "undefined" && window.isSalesIQIntegrationEnabled === true && typeof window.zf_addDataToSalesIQ === "function" ) { try { window.zf_addDataToSalesIQ(); } catch (e) { // fail silently (crawler-safe) } } return valid; }; })();