Hey there, looking to adopt AI? First check your AI readiness

Assess Now

ServiceNow upgrade

  • August 30, 2022
  • Aelum Consulting

De-mystifying the ServiceNow Tokyo Release

ServiceNow Tokyo Release brings you a new and improved user experience, with new features, improved reporting, and management capabilities. ServiceNow Tokyo Release is the latest ServiceNow release, which brings you […]

Read More
// document.addEventListener('DOMContentLoaded', function () { // // List of blocked free/personal domains // const blockedDomains = [ // "gmail.com", "yahoo.com", "hotmail.com", "outlook.com", "aol.com", "live.com", // "protonmail.com", "icloud.com", "zoho.com", "yandex.com", "mail.com", "gmx.com" // ]; // // Handle CF7 submit via AJAX // document.querySelectorAll('.wpcf7 form').forEach(form => { // form.addEventListener('submit', function (e) { // let isValid = true; // // Remove previous error messages // jQuery(form).find('.business-email-error').remove(); // // Check each email input // jQuery(form).find('input[type="email"]').each(function () { // const $input = jQuery(this); // const email = $input.val().trim(); // const domain = email.split('@')[1]?.toLowerCase(); // if (domain && blockedDomains.includes(domain)) { // isValid = false; // $input.after('Please use a valid business email address.'); // } // }); // // If not valid, stop the submission // if (!isValid) { // e.preventDefault(); // e.stopImmediatePropagation(); // STOP AJAX submission // return false; // } // }); // }); // // Optional: Remove error on focus // jQuery(document).on('focus', '.wpcf7 input[type="email"]', function () { // jQuery(this).next('.business-email-error').remove(); // }); // // });