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
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.
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
Hi Rohan,
What exact version of Umbraco 7 are you using?
Looking forward to hear from you.
/Dennis
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
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
is working on a reply...