#3161 - Intelligent postal code input

Identifier #3161
Issue type Feature request or suggestion
Title Intelligent postal code input
Status Open
Handling member Deleted
Addon core_form_interfaces
Description Postal code inputting has different rules, depending on country.

In the US there are numeric +5 zip codes, followed by an optional numeric +4 zip code.

In the UK there are alphanumeric area codes then street codes within that. There are a finite set of area codes that can realistically be validated.

There should be a form_input_postal_code function and a field hook.

The nature of the input should be able to change using JavaScript, as the country is changed.

Change the input label based on the country involved. 'Zip code' for US, 'Postcode' for UK.

We are using the term 'Postal code' as the internationalised version.
Steps to reproduce

Related to

#3160 - Address auto-completion

#3159 - Telephone field input

#98 - Cascaded form inputter

#5015 - Add a nice Credit Card widget / input

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated