WAValidatePN problem
I am having problem with a phone number field. When I enter 555-555-1212 it reformats it to (555) 555-1212 and then tells me that I have exceeded the maximum number of characters.
Go to registration.php to duplicate the error. This page was built with CSS Form Builder 2.0.
Here are two code snippets that show the calls to WAValidatePN
$WAFV_Errors .= WAValidatePN((isset($_POST["Phone_Number"])?$_POST["Phone_Number"]:"") . "",false,true,true,4);
and
<input id="Phone_Number" name="Phone_Number" type="text" value="" class="formTextfield_Large" size="15" tabindex="4" onblur="WAValidatePN(document.getElementById('RichRegistration_NewFromBlank_Default').Phone_Number,'',false,true,'x (xxx) xxx-xxxx',document.getElementById('RichRegistration_NewFromBlank_Default').Phone_Number,0,true);"/>
<span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span><span class="textfieldRequiredMsg">Please enter a 10 digit phone number</span> </span>
Thanks for your help.
Regards,
David