Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
412
Using Webmask with an Email Address
posted

Does anyone have a InputMask value for an email field?

Thanks.

Andy

Parents
No Data
Reply
  • 24497
    posted

    Hi Andy,

    Unfortunately WebMaskEdit supports only mask with static length. There is also no flag to filter letter-digit-underscore-dash or similar entry.

    You may set mask like

    CCCCCCCCCCCCCCCC@?????????????.LLL

    and process ClientSideEvents.KeyDown event with cancelation of any entry beyond letter-digit-underscore-dash-MayBeSomethingElse (that is rather easy to implement).

    That will limit entering space, quotes, etc for CCCCC...

    If you set DataMode=RawTextWithLiterals, and user will enter "myname______@provider______.com", then the Value property will return "myname@provider.com"

Children