Msg#: 3602995 posted 3:38 pm on Mar 17, 2008 (gmt 0)
I am looking for the best practice for usability in webforms for formatting phonenumbers, addresses, and names.
Most of our users will be US or Canada but 10% may be from overseas. Is there a website or can you share tips on developing forms. Our backend is oracle ad each feild is a string, but I want it to be familiar and a standard in the presentation layer.
I was thinking besides validation client and server to have the form set up like:
Msg#: 3602995 posted 7:17 pm on Mar 17, 2008 (gmt 0)
"Last name", "surname" don't have the same meaning in all cultures. In Asia, for example, people use what you would call their "last name" as their "first" name.
"Family name" is a better and more universal representation.
Make sure to call the "state" field "state/province", since most countries don't use "states" (including Canada). It should also be optional.
"ZIP" is a bad name. It stands for "Zone Improvement Plan" has very little meaning to anyone outside the US. "ZIP Code" is slightly better, but still bad. "Postal code" is universally understood.
... and don't forget to ask for the country ;)
And the phone number should not be enforced in length or anything. Make if freetext. In the US and Canada it is always ###-###-#### (with a possible extension, which you had not left room for). But in other countries the phone number is vastly different. In Sweden, for example, it is 2-4 digits for the area code, and 5-7 for the number itself. Denmark doesn't use area codes period.
Msg#: 3602995 posted 2:49 am on May 20, 2008 (gmt 0)
I use a JS function fired by onblur to check for a recognizable format and reformat it the way I want, or to leave it as-is if it can't find one. With 40 formats to pick from and multiple variations, it does a pretty fair job. An ATT rep found it and requested a copy for their use!