Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex 79 posts 416 karma points
    Aug 13, 2015 @ 11:49
    Alex
    0

    Email validation

    how to create email validation for textbox in admin side

  • Bjarne Fyrstenborg 1286 posts 4060 karma points MVP 8x c-trib
    Aug 13, 2015 @ 12:01
    Bjarne Fyrstenborg
    1

    Hi Max

    You can enter different types of regex expression the validate if the input is an e-mail. Just be aware not to make it too strict..

    But you know that in Umbraco 7 there is a built-in EmailAddress property editor. Just go to developer sections -> datatypes and create a new datatype, where you choose the EmailAddress property editor from the dropdown.

    enter image description here

    /Bjarne

  • Steven Harland 78 posts 518 karma points c-trib
    Aug 13, 2015 @ 12:07
  • cronywalls 2 posts 72 karma points
    Feb 05, 2019 @ 09:20
    cronywalls
    0

    Using regEx

    ValidationExpression="[a-z0-9!#$%&'+/=?^_{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)@(?:a-z0-9?.)+a-z0-9?"

    Regex.IsMatch("[email protected]", ValidationExpression);

    More on....email validation

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies