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?
Email Validation failing every time on OPC checkout
- William_firefold
- Commander (CMDR)
- Posts: 186
- Joined: Fri Aug 01, 2008 8:38 am
Re: Email Validation failing every time on OPC checkout
Your application version? Also could you post commented validator code here?
- William_firefold
- Commander (CMDR)
- Posts: 186
- Joined: Fri Aug 01, 2008 8:38 am
Re: Email Validation failing every time on OPC checkout
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>