Best practice for email validation

  • rgriffin.inbox
    Asked on January 21, 2021 at 1:54 PM

    Hi,

    I am looking to for a way to ensure correct emails are entered by users. This means both intended (work) domain and avoiding mistakes. Our users have a habit of either entering the incorrect domain or making mistakes in their email address.

    For domain issue, I was hoping for a way to mask any number of characters and then have the domain e.g. *@domain.com but obviously this will only allow only 1 character, not multiple characters to be inputted.

    We use Mailjet for sending emails to users afterwards and they do have subscription widgets but cannot work out how we may take advantage of these using Jotforms? https://documentation.mailjet.com/hc/en-us/articles/360042502194-Subscription-Widget

    Users also are not signing up for a subscription but single transactional email with file attached.

    For new Client projects our template form is cloned so the preference is to not have to update a paragraph field or similar each time appearing next to a text box because then the fields will need to be combined to send an email to that account.


    Your advice will be greatly appreciated here..

  • Basil JotForm Support
    Replied on January 21, 2021 at 4:52 PM

    Hi,

    You can use the mail validator widget to verify emails.

    Widget: https://www.jotform.com/widgets/e-mail-validator

    Relevant guide: https://www.jotform.com/help/427-how-to-verify-an-email-address-before-or-after-form-submission

    I am not sure if I understand the rest of your question, could you please explain a bit more in detail?

    Looking forward to your reply.

  • rgriffin.inbox
    Replied on January 26, 2021 at 6:10 AM

    Thanks. This helps with validating any email address but what about to force the use of a specified domain?

    For example users that submit must use @companydomain when validating that email address?

    The solution needs to be able to handle both of these requirements, any suggestions on implementation?

  • Richie JotForm Support
    Replied on January 26, 2021 at 7:45 AM

    You can use the basic email field to disable free emails.

    1611664854 60100dd6e7790 1 Screenshot 10

    However, it is not possible to specify a domain to be used.

    You may however, use conditions to hide or show an error message if the user has not inputted the correct domain.

    Example condition.

    1611665085 60100ebd089b4 1 Screenshot 21

    Please check it out and let us know if this fits your requirements.