Hi, I've had a Contour form up and running on my site for at least half a year and just yesterday a prospect told me that the form wouldn't accept their email address ("Email is not valid."), which was essentially [email protected]. The issue seems to be that period before the @ sign. If I enter [email protected], it works.
Has anyone encountered such an issue and how can I resolve it?
If you used one of the default form templates, they all contain a regex that doesn't work for all email addresses. The one that Dave suggests should be much better. If you want to update the templates to use that one instead by default, go to: /umbraco/plugins/umbracoContour/templates on your site, and edit the two .ucf files in notepad. You just need to replace the RegEx that's in there for the email fields with the one that Dave's suggested!
Once you've done that, any forms created using the templates will use the better RegEx.
Form doesn't allow email addresses with periods?
Hi, I've had a Contour form up and running on my site for at least half a year and just yesterday a prospect told me that the form wouldn't accept their email address ("Email is not valid."), which was essentially [email protected]. The issue seems to be that period before the @ sign. If I enter [email protected], it works.
Has anyone encountered such an issue and how can I resolve it?
Thanks!
Hi Eugene,
You probably have a regex defined on the e-mail field in the form that is causing this.
Can you try this one : \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
Dave
If you used one of the default form templates, they all contain a regex that doesn't work for all email addresses. The one that Dave suggests should be much better. If you want to update the templates to use that one instead by default, go to: /umbraco/plugins/umbracoContour/templates on your site, and edit the two .ucf files in notepad. You just need to replace the RegEx that's in there for the email fields with the one that Dave's suggested!
Once you've done that, any forms created using the templates will use the better RegEx.
Comment author was deleted
Yup it's the default regex that's causing the issuen thought we changed that but will add it to the todo for the next maintenance release
Cheers,
Tim
is working on a reply...