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

Assess Now

Low Code Platform

  • April 21, 2022
  • Aelum Consulting

Fast Track Innovation With A Low Code Platform

ServiceNow enables businesses to transform by automating and optimizing operations at scale without impacting user experience, security, governance, or performance. ServiceNow Creator Workflows combine the power of App Engine and […]

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