Do you want to blacklist some email domains?
The idea is when users enter an
*****@facebook.com for example, they will not pass the validation process.
For this, you need to add a pattern to the Email field. Just click it and scroll the popover.
In Pattern add the following string.
For example, this pattern allows you to restrict multiple free domains, including gmail, outlook and facebook. But you can update it to include other domains too. Just add a pipe with the domain name (Eg. “|spammer”) after “facebook”.
This is the error message you will see during the Client-Side validation:
And this is the error message you will see during the Server-Side validation:
If you want to customize the server-side validation error messages, you can get our Premium Add-On: Custom Error Messages.
Leave A Comment
You must be logged in to post a comment.