Maybe someone should start a library for this problem, and then we all lay back and watch it grow to 50,000 LOC.
Dear American Website Owner
41–50 of 149 posts
Re: Dear American Website Owner
#42And fix those drop-down menus for country where I have to scroll allllll....the.....waaaaay....dowwwwwwn to reach United Kingdom!
Re: Dear American Website Owner
#43Earlier quoted context omitted.
I'm not snitko, but I don't see the problem. Could you please explain your reasoning?
To be blunt, inputs you don't validate are inputs that will be entered wrong a significant portion of the time. Other concerns may override this for many fields, but unusable phone numbers are generally considered a problem.
Also, wouldn't a phone number in effect be validated for most online credit card purchases? I thought credit card processor often match the phone number you provide to the phone number on record for your account to prevent fraud. Skip the javascript validation, and let the cc processor validate the phone number.
...but I have no idea what I'm talking about, please correct me if I'm wrong.
Re: Dear American Website Owner
#44I wish author was a little more constructive here. What phone number pattern would he recommend we use?
Probably the best approach is not using any pattern at all. The less you force your users into something that will not work most of the times, the best. I always struggle to input information even in forms designed specifically for my country. Just let people enter numbers with all the spaces and the dashes the wish. After all, if a human will ever need a phone number, he will be able to read it in any form. If these…
Re: Dear American Website Owner
#45Re: Dear American Website Owner
#46What's the point of having a state field at all? Isn't there a unique mapping between zip code and state? About the phone numbers, my favorite annoyance is when companies, who always are fond of making stupid mnemonics out of the letters corresponding to their phone number, don't let me enter my mnemonic for my phone number, which I picked from Google Voice specifically because it makes my name, but insists on number…
What's the point of having a state field at all? Isn't there a unique mapping between zip code and state? No. Zip codes may cross state lines.
Edit: Sorry, There are a few that cross state lines, when using the first two digits as the state code. However, each ZIP code is unique to a town; therefore, one could use it in the above scenario.
Re: Dear American Website Owner
#47Earlier quoted context omitted.
Why use any pattern? Let me enter the phone number in a way I got used to it and deal with it.
There's a cost/benefit analysis to be done. People do make mistakes, and checking their submission against common patterns will save you lost sales. As suggested in a comment on a rant I wrote a few years ago, one strategy is to 'validate' against something reasonable, but instead of rejecting anything that fails, ask the user to confirm that they really do want something unexpected. I'm not sure that 'reasonable' wo…
Re: Dear American Website Owner
#48I think this blog post REALLY overlooks the fact that interface localization isn't easy; even with a simple web forms. The interface for a search engine is a single input field with dynamic suggestions and people were in an uproar when Bing didn't give suggestions that were localized to the user's country or language. That's to say, if one of the biggest software companies in the world can't get it right, then what h…
Not every aspect of this is easy, true, but that's no reason not to tackle the ones that are. It's trivial to simply not require a state or a postcode or try to verify a phone no if the user selects a country other than the US. There should be a library for this. We have libraries that can handle the insanely capricious details of DST for all countries and subnational entities on the planet; we should have no problem…
Re: Dear American Website Owner
#49What's the point of having a state field at all? Isn't there a unique mapping between zip code and state? About the phone numbers, my favorite annoyance is when companies, who always are fond of making stupid mnemonics out of the letters corresponding to their phone number, don't let me enter my mnemonic for my phone number, which I picked from Google Voice specifically because it makes my name, but insists on number…
What's the point of having a state field at all? Isn't there a unique mapping between zip code and state? No. Zip codes may cross state lines.
Re: Dear American Website Owner
#50I've argued many times for making address one big text field. Let people who live in the country, who own the address, format it how they know it should be formatted.
Bad reasons given:
- Safeguard against users who can't be relied on to format their own address properly. Fix 1: Don't worry about that. Fix 2: If you really want this, leave the rest of us an option to use a freeform address instead.
- "Out webshop database has these fields." Fix: Change the database, then.