AdvancedCustomFields / acf

Advanced Custom Fields
http://advancedcustomfields.com/
868 stars 180 forks source link

HTML5 input type tel #16

Open inetbiz opened 6 years ago

inetbiz commented 6 years ago

A new input type must be created in order to collect tel and let the browser format and verify input for submission. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/tel

elliotcondon commented 6 years ago

Hi @inetbiz

Thanks for the request. I agree this field type would be a great addition to the plugin, but wonder if this is veering away from "content editing" and more towards "contact forms".

inetbiz commented 6 years ago

@elliotcondon I'm buying the dev license. I need the tel field to ask for org phone. That input type is the fastest way to ensure correct input when I output that back again in JSON+LD

elliotcondon commented 6 years ago

Hi @inetbiz

For sure. I agree that the field type will be useful, but am not sure it belongs in the core. It would be very easy to create this field type yourself as a 3rd party solution. Checkout the tutorial here: https://www.advancedcustomfields.com/resources/creating-a-new-field-type/

inetbiz commented 6 years ago

@elliotcondon I strongly disagree. POSH HTML5. If you're going to have an input field of email and url, you also need one for tel.