Falsehoods programmers believe about postal addresses

Not every country has states. Not every address has a postal code. Here's what breaks address forms — and the country-aware field that fixes them.

Try it — type something other forms reject:
  • A two-letter (ISO) country code is required.

The US-shaped address form — street, city, State, ZIP — is the single most common way to lock out international customers. Change the country and the fields themselves should change.

The falsehoods

How humaneforms handles it

The demo above is the real AddressField. Switch the country and watch the labels, the visible fields, and the field order change: pick Hong Kong and the postal and region fields disappear; pick Japan and the postal code moves to the top; pick the UK and “ZIP code” becomes “Postcode”. This is the field developers most dread building — and the reason the Pack pays for itself.

Get the Pack for the AddressField, or start with the free fields.

Get the Pack — $99 Free on GitHub