Reputation: 393
it's possible on a email filed (form builder) to restric some domains like "@gmail.com"?
I want to acept only some email in registration form.
Upvotes: 0
Views: 1151
Reputation: 393
Finally I haved tried to create a custom constrain validator like this:
https://stackoverflow.com/a/36452969/8526318
Upvotes: 1
Reputation: 175
You can first play with Symfony EmailValidator:
https://symfony.com/doc/current/reference/constraints/Email.html
Or you can use something like that, playing with custom constraint:
https://stackoverflow.com/a/36452969/8526318
Upvotes: 1