How can I validate the user’s email only if it is from a specific domain?
I’m creating a project where a certain area of the application can only be accessed by: any_user@mycompany.com.
In this area, users cannot register their personal e-mails.
How can I validate the user’s email only if it is from a specific domain?
I’m creating a project where a certain area of the application can only be accessed by: any_user@mycompany.com.
In this area, users cannot register their personal e-mails.
@ivo.alves you can set to check if the input value contains “mycompany.com”.
Let me know if you can achieve it with this info.
You could of course simply check if a substring (company domain) exists inside a string (email address).
There’s also a built-in way to extract info from an email address in bubble.
You can do User's email :extract domain is <your company domain>
to run a check on the domain part of the email address and get a yes/no response from the dynamic data
Thanks, Clasicwebtools. Add a rule in a hidden input allowed me show a message, as I’d like.
This topic was automatically closed after 70 days. New replies are no longer allowed.