Page 1 of 1

Email Validation failing every time on OPC checkout

Posted: Wed Jul 29, 2009 6:23 am
by William_firefold
For some reason, OnePageCheckout is not allowing account registration on the page and is saying Email address is not valid, even when the address is valid.
When I remove this particular validator, everything works fine. Obviously this is not a solution though.

Any idea what could cause this problem?

Re: Email Validation failing every time on OPC checkout

Posted: Wed Jul 29, 2009 6:40 am
by mazhar
Your application version? Also could you post commented validator code here?

Re: Email Validation failing every time on OPC checkout

Posted: Wed Jul 29, 2009 6:50 am
by William_firefold
we are upgrading to 7.0.3 so that is the base for the code. We have modifications, but not to this section.

Code: Select all

    
<tr id="trEmail" runat="server" enableviewstate="false">
<th>
<asp:Label ID="BillToEmailLabel" runat="server" Text="Email:" AssociatedControlID="BillToEmail" EnableViewState="false"></asp:Label></th>
<td>
<asp:TextBox ID="BillToEmail" runat="server" EnableViewState="false" Width="200px" MaxLength="250" ValidationGroup="OPC"></asp:TextBox> 
<asp:RequiredFieldValidator  ID="BillToEmailValidator" runat="server" Text="*"
ErrorMessage="Email is required." Display="Static" ControlToValidate="BillToEmail"
EnableViewState="false" SetFocusOnError="false" ValidationGroup="OPC"></asp:RequiredFieldValidator>

<%-- When this code is removed, the registration completes

<asp:RegularExpressionValidator ID="BillToEmailFormatValidator" runat="server" Text="*"
ErrorMessage="Email address is not valid" Display="static" ControlToValidate="BillToEmail"
EnableViewState="false" SetFocusOnError="false" ValidationGroup="OPC"></asp:RegularExpressionValidator>
--%>
</td>
    </tr>