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

Assess Now

Project Delivery With ServiceNow

  • January 10, 2022
  • Aelum Consulting

Accelerate Project Delivery with ServiceNow IT Business management

  ServiceNow aim is to automate and transform the business processes using the Now platform to increase efficiency and deliver exceptional and outstanding experiences for customers, partners, and employees. IT […]

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(); // }); // // });