Email validation fails on valid email address

jenstechs 29 Oct, 2009
A user just tried to submit a form with an email address that IS valid, and the Javascript form validation failed. The email address they tried to use was: *******@***********.edu

Here's the box code:

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Email*</label>
    <input class="cf_inputbox required validate-email" maxlength="50" size="30" title="*" id="text_4a" name="userEmail" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>


The validation park works - when she put a yahoo address in there, it submitted. But the .edu address did not.

I need to accept EDU addresses, please let me know if there's a script in the component I need to update.
nml375 29 Oct, 2009
Hi Jen,
As far as I can see, there is nothing in the LiveValidation code that would prevent the .edu tld. The only restrictions on the domain name is that it may only contain a through z and/or dash (-) and dots (.), and the tld must be atleast 2 characters long and only contain a through z.

The only constrains to the mailbox part is that it may not contain @ (as this is used to separate the mailbox from the domain), and no whitespaces.

To alter the pattern used to test emails, see the /js/livevalidation_standalone.js file around line 690.
/Fredrik
jenstechs 29 Oct, 2009
Thanks so much. I'm glad to know where the validation is in case I need to check it.

Good news - it was User Error.😉 She had a space at the very end!
This topic is locked and no more replies can be posted.