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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.