Forums

valid email address length issue

alan.bagley 12 Jul, 2011
Hi,

when using the email validation check I am getting the validation return if the length of the email address is to long, eg: [email]shubagupda@scgbusinesssolutionsltd.co.uk[/email] this is a valid working email address, where is the length function set and how can I increase it?

Chrono forms version: 3.1 RC5.5

Kind regards
Alan
GreyHead 12 Jul, 2011
Hi Alan,

I think that CFv3.1 used the LiveValidation library. I checked the code and there is no length limit in the email validation that I can see. The validation uses this Regex and and the Regex validates the long email without any problem.
^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$


I'm not sure what is happening. Is there any other validation on the input?

Bob
alan.bagley 12 Jul, 2011
Hi Bob,

thanks for getting back to me, I have done some testing and I could get it to work I have spoken to my client and it seems they were adding some white space when copy and paste, so problem sorted, thanks for your reply though

Kind regards
Alan
GreyHead 12 Jul, 2011
Hi Alan,

White space would break it - it isn't so much the length but that the Regex tests the whole entry and white-space makes an invalid email :-(

Bob
This topic is locked and no more replies can be posted.