Contour includes two templates to quickly create contact and blog post forms. Whlist these work great in most cases the regular expression syntax used in them to validate an email address is very flawed. It does not allow my personal email for example which is on a "fun.org.uk" domain name.
So, from this a few questions spring immediately to mind:
Can the tempaltes within Contour be modified? - I don't know the answer to this - Core team please help!
What standard email validation regex should be included as part of the main Contour build? - I use something like this to validate my emails ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}$
Upon creating some of my owen regular expressions - I found it slighly annoying that there wasn't a check-box to make the regex "case insensitive". - Core team >> Can a checkbox like this please be added into the next revision?
1. The regex is kept in the config file here: \umbraco\plugins\umbracoContour so you can change it to something more fitting to you there.
2. What has basicly happened 2-3 times now is that we release a new version with a suggested improved regex, and then a even better regex gets suggested at some point, so I'm guessing at some point we will have the perfect crowdsourced form validation :)
3. we have intentionally left it out of the ui to minimize the amount of ui components as regex does not depend on this setting being available. Adding it would mean an update to the database schema, something we would very much avoid doing in a minor maintance release.
Contour templates contain INVALID email regular expresion.
Just came across this one...
Contour includes two templates to quickly create contact and blog post forms. Whlist these work great in most cases the regular expression syntax used in them to validate an email address is very flawed. It does not allow my personal email for example which is on a "fun.org.uk" domain name.
So, from this a few questions spring immediately to mind:
- I don't know the answer to this - Core team please help!
- I use something like this to validate my emails ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}$
- Core team >> Can a checkbox like this please be added into the next revision?
Kind regards,
David
Hi David
1. The regex is kept in the config file here: \umbraco\plugins\umbracoContour so you can change it to something more fitting to you there.
2. What has basicly happened 2-3 times now is that we release a new version with a suggested improved regex, and then a even better regex gets suggested at some point, so I'm guessing at some point we will have the perfect crowdsourced form validation :)
3. we have intentionally left it out of the ui to minimize the amount of ui components as regex does not depend on this setting being available. Adding it would mean an update to the database schema, something we would very much avoid doing in a minor maintance release.
Awesome - thank you for your support (again) Mr Hansen :)
@Per
I looked for the \umbraco\plugins\umbracoContour config file, but I don't see any setting for the regex there?
greetings,
Anthony
Hi Anthony,
I think he is refering to the built in templates under: /umbraco/plugins/umbracoContour/templates/
I think if you have any forms already created based on these templates they would need to be updated also.
-Tom
@Tom the regular expression problem is solved by the regular expression that you handed to me in another post.
EDIT: Never mind - wrong browser window!
Hi guys,
Shouldn't this just come with Contour? Seems strange that I had to Google CAPTCHA for Contour to find this blog post to get the download link...
Just a thought!
David
is working on a reply...