The zip code field (address_zip on ContactInfo) currently is hard coded to 5 characters. This means it doesn't support postcodes from outside the US.
I think the proper solution would look something like this:
- Add a second field
address_postcode which supports longer postcodes (e.g., UK postcodes are up to 8 characters long)
- When a user selects "International" from the state field, the postcode field replaces the zip code field (like how the country field dynamically appears)
address_zip and address_postcode would both be optional, but when an address is required, at least one of them would be required for the form to be valid
The zip code field (
address_ziponContactInfo) currently is hard coded to 5 characters. This means it doesn't support postcodes from outside the US.I think the proper solution would look something like this:
address_postcodewhich supports longer postcodes (e.g., UK postcodes are up to 8 characters long)address_zipandaddress_postcodewould both be optional, but when an address is required, at least one of them would be required for the form to be valid