Email Validation: Requiring a specific domain for email address

  • PorchLightRE
    Asked on October 3, 2016 at 1:39 PM

    Hello! 

    Is it possible to require the user to enter a specific domain for their email address? For example, we need them to use their "work" email - @porchlightgroup.com instead of any other email they might use. Is it possible to create this restriction in the question?

     

  • Mike
    Replied on October 3, 2016 at 7:30 PM

    We do not have such validation option, but you might consider the following workaround.

    - Add a Text warning field.

    Email Validation: Requiring a specific domain for email address Image 1 Screenshot 60

    - Setup a Show/Hide condition to hide the submit button and show the warning message if the email field does not contain @porchlightgroup.com.

    Email Validation: Requiring a specific domain for email address Image 2 Screenshot 71

    Email Validation: Requiring a specific domain for email address Image 3 Screenshot 82

    - Add your domain to Default Value to not to trigger condition when the form is loaded.

    Email Validation: Requiring a specific domain for email address Image 4 Screenshot 93

    Result:

    Email Validation: Requiring a specific domain for email address Image 5 Screenshot 104

    If you need any further assistance, please let us know.