Hey @PIvaldi95, we have a business email only script in our community that you can find here:
You would want to modify the script and add the ‘edu’ domain to the regex, so for example in this part you can add ‘edu’ at the end of the list after the other blocked domains, don’t forget to add a ‘|’ in between:
(me|mac|icloud|gmail|googlemail|hotmail|live|msn|outlook|yahoo|ymail|aol|edu)
I hope this helps @PIvaldi95! Let me know if you have any trouble implementing this and we can run your page by our support team!
Good morning and thank you for your response!
We found the solution in another community thread, and the script we ended up using is this one:
<script>
window.ub.form.customValidators.nonWebmailEmail = {
isValid: function(value) {
return !(/\@(me|mac|icloud|email|gmail|googlemail|hotmail|live|msn|outlook|yahoo|ymail|aol|edu|alumnos|gamil|alumno)\./.test(value.toLowerCase()) || /(\.edu)/.test(value.toLowerCase()));
},
message: 'Por favor, ingresa tu mail corporativo.',
};
</script>
<script>
window.module.lp.form.data.validationRulesi'email'].nonWebmailEmail = true;
</script>
Have a great 2023!