Hi,
We are looking to limit the email field to receive only one domain (ex. sebastian@onlythisdomain.com)
Based on this article we try to change the email to onlythisdomain but it didn’t work
<script> window.ub.form.customValidators.nonWebmailEmail = { isValid: function(value) { return /\@(?!(onlythisdomain)\.)/.test(value.toLowerCase()); }, message: 'Please enter your work email address', }; </script> <script> window.module.lp.form.data.validationRules['my_email_form_field_id_goes_here'].nonWebmailEmail = true; </script>
any suggestion?