Support

Account

Home Forums Feature Requests Phone Number Field Reply To: Phone Number Field

  • Just speaking in general as I’m not the developer and do not know his thinking on this.

    
    array(
    ‘areacode’ => ‘888’,
    ‘prefix’ => ‘123’,
    ‘linenumber’ => ‘4567’,
    ‘extension’ => ‘300’,
    );
    

    is great in the US, but is not consistent the world over. I know from experience attempting to validate phone numbers that people enter that it pretty much impossible to account for every way that phone numbers are used in the world. Unlike many things, there isn’t an international standard for phone numbers. Any validation of a phone number would have to be done based on need. Even the html element <input type="tel" /> does not validation numbers unless you provide the pattern to validate against https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/%3Cinput_type=_tel_%3E. My guess is that this is a part of the reason there is no telephone field in ACF.