The Phone Input type extends Text input to provide validation and formatting appropriate for international phone numbers.
Like Text inputs it supports icons, prefixes, suffixes, validation, etc.
The Phone Input field also has additional settings specific to working with phone numbers.
- Country Picker – Adds a dropdown list of two-letter country codes before the text box to automatically insert a country dialing code: e.g. GB = +44
- Include Country Code – Adds the two letter country code to the value sent with the form. if a country code is not selected in the picker, attempts to infer the country code from the phone number.
- Phone Format – Determines how the output is formatted. Options are National, International, E.164, and RFC 3966 (which is the telephone URI format).
- Default Country Format – Allows selection of a default country code. If no selection is made US (+1) is assumed. Even with a default selection, the input will infer country code from an internationally formatted number. e.g. If a number starts with 0044 or +44 then GB will be inferred.
Comments
0 comments
Please sign in to leave a comment.