You’re ordering auto parts online. The order form requires a mandatory phone number. It allows ten digits for the phone number.
You enter your phone number with area code: xxxxxxxxxx
The scripting on the form automatically reformats the phone number to make it “pretty”, like this: (xxx) xxx-xxxx
And then it all goes pear-shaped, because NEXT the field length limiting script kicks in and truncates that to ten characters: (xxx) xxx-
So, you can’t submit your order form without a valid phone number.
And you can’t submit your order form with a valid phone number, because by the time you hit submit, the form has automatically invalidated it.
FAIL.
Tags:
no subject
If I wanted to be really fancy I could even check for common errors when validating the phone number. For example if there were 11 digits I chould check if the first digit is a 1. If so remove it and recheck the validity of the number.