Extracting domain from email input


I am making an internal app for our company that has a domain name. What I want to happen is that new users (employees) should only be using our internal domain name so that registration and login will only work if our domain name is used.

In the sign up page, I am looking at this expression. However, I cannot seem to make it work and it is not saving in the database. Is there a better expression/workflow for this?
Screen Shot 2022-03-06 at 12.03.10 PM

Just do only when: input value extract domain is “expected domain”

In same workflow have a toast error show only when input value extract domain is not “expected domain”

On the login/signup button I’d add this condition:
Go to page X
when user’s email:split by(@):last item contains “domain”

This topic was automatically closed after 70 days. New replies are no longer allowed.