Checking the phone number - I'm not sure I would spend a lot of time on this. Numbering schemes change quite often (for example, while I was living in the UK, the phone numbers for London codes changed at least once, with a different replacement shortly before I moved there), but in Germany this (or, at least, itโs used to be quite common, to increase the number of available phone numbers on this exchange, taking the old number and typing an additional number or two at the end.Thus, any assumption about this phone number format will change, and youโll end up playing catch-up If you insist on dividing the phone number into an international / regional code / main number, you will probably find that this is a very country-specific way of presenting information, so you will need an input mask to a large extent for each country and for a specific validation rules. Not to mention that in places like Germany, the area code can have from two to four digits, etc.
Regarding postal addresses, the most important suggestion I have is to ensure that you can accept non-numeric postal / postal codes, otherwise you will not be able to process addresses in Canada and the UK (and possibly elsewhere). This is a bit of a hobby for my horse, as I had several problems with sites in other countries that simply refused to allow me to enter a non-numeric zip code, and I had to resort to sending faxes using my address information, because I could not fill out an online application form. In my book, that is bad karma if you allow international customers ...
In addition, assuming that certain parts of the address (for example, state / county) and those requiring them, as a rule, have a greater headache than it costs. I will be tempted to offer a standard house number + street (to combine them, different languages, put the house number in different places, therefore it is not very good to separate them IMHO if you do not know how to collect them correctly, plus sometimes you will end up with the name houses instead of numbers), city and zip code, possibly with an optional county / state field. If you want to be truly useful to you as an international audience, offer an input field for free form, one text field for those addresses that do not meet our "standard" assumptions about how the address looks. And please make them big enough so that people with fairly long addresses do not go out of space ...
Timo geusch
source share