I added a new field validation to only accept business email addresses. The script is fairly simple and I tested and it works.
Here is the script
<script>
window.ub.form.customValidators.nonWebmailEmail = {
isValid: function(value) {
return /\@(?!(me|mac|icloud|gmail|googlemail|hotmail|live|msn|outlook|yahoo|ymail|aol)\.)/.test(value.toLowerCase());
},
message: 'Please enter your business email address',
};
</script>
<script>
window.module.lp.form.data.validationRules['email'].nonWebmailEmail = true;
</script>
Yes, somehow, every now and then, I get an email from someone using gmail.com. How are these guys able to bypass the script?