• Resolved saraeee

    (@saraeee)


    Hi
    I want to validate the email address which the user inputs with input mask in wpforms.
    I tried to use below link
    masks/”>https://wpforms.com/docs/how-to-use-custom-input-masks/
    and add input mask like this for validating email address:
    *[*{2,50}]@*[*{2,50}].*[*{2,50}]
    The problem with this input mask is that it doesn’t accept _ or . in email adress. Can you help me please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @saraeee,

    Thanks for writing in.

    Currently, the custom input mask can only set rules for alphanumeric characters.

    But, is there any reason why you want to create a custom input mask instead of using the email field? In case it helps, you should be able to use this field easily as this is designed to validate the input to be email addresses.

    I hope this helps.

    Hi @saraeee,

    We haven’t heard back from you in about a week, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘input mask for email address’ is closed to new replies.