Copied to clipboard

Flag this post as spam?

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


  • Rohan 105 posts 162 karma points
    Feb 23, 2015 @ 13:24
    Rohan
    0

    regular expression on document type property

    Hi

    I need to add two fields on my content. Phone number and Email address.

    So i have added two properties on my document type. I have set it as Mandatory. Now i have added Regular express for Phonenumber and Emailaddress. I have just save the property and Go to the Content and checked. But regular expression validation is not working.

    When i go back to Properties again and see the Validation field, IT'S SHOWING BLANK ??? Can anyone please help me here ? I am using below validation for Email and Phone

    Email = ^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)

    Phone = /^(\+?)[0-9]{10,11}$/

     

    Thanks,

    rohan dave

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Feb 23, 2015 @ 14:21
    Dennis Aaen
    0

    Hi Rohan,

    What exact version of Umbraco 7 are you using?

    Looking forward to hear from you.

    /Dennis

  • Rohan 105 posts 162 karma points
    Feb 24, 2015 @ 09:13
    Rohan
    0

    Hi Dennis

    thanks for asking.

    I am using Umbraco 7.2.1. Actually later on i have sorted the issue. Now regular express is working nicely on my document type in Umbraco CMS

    Thanks

     

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Feb 24, 2015 @ 09:16
    Dennis Aaen
    0

    Hi Rohan,

    Great to hear that you solve this issue, is possible to you to share what this issue was, so other can benefit and see what works for you, if they get the same issue.

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft