logoalt Hacker News

pstuarttoday at 12:16 AM1 replyview on HN

Put a postal code first.

Include a field for the country that is autofilled via Geolocation API or geoip if that's unavailable.


Replies

notpushkintoday at 12:27 AM

Put country first. Postcode doesn’t make sense without one. Prepopulating one based on location is generally okay, but don’t assume it will always be the same.

Or just don’t try to be too clever.