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:
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.
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.
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
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
This topic is locked and no more replies can be posted.