uk format phone number
Hi
I thought this was the correct format to set the phone number format but it fails
<tr>
<th>Phone Number:</th>
<td><span id="sprytextfield4">
<input name="UserPhone" type="text" class="WAATKTextField" id="UserPhone" onBlur="if (document.getElementById('PhoneServerValidation')) document.getElementById('PhoneServerValidation').style.display='none';WAValidatePN(document.getElementById('WAATKRegistrationForm').UserEmail,'- Invalid phone number',false,true,'(xxxxx) xxxxxx',document.getElementById('WAATKRegistrationForm').UserEmail,0,true)" value="<?php echo(ValidatedField("usersRegistration","UserPhone")) ?>" size="32" />
<span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldMinCharsMsg">Minimum number of characters not met.</span><span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span></span>
<?php
if (ValidatedField("usersRegistration","usersRegistration")) {
if ((strpos((",".ValidatedField("usersRegistration","usersRegistration").","), "," . "13" . ",") !== false || "13" == "")) {
if (!(false)) {
?>
<span class="textfieldServerError" id="PhoneServerValidation">
Please enter your phone number. </span>
<?php //WAFV_Conditional users_Registration.php usersRegistration(13:)
}
}
}?></td>
</tr>
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "phone_number", {format:"phone_custom", useCharacterMasking:true, pattern:"(00000) 000000", isRequired:false});
what have I missed?
thanks
Ian