I too, am using the "Phone" field from the "Advanced Fields" and need to continue using it, as it has a direct correlation to the the UI in an iPhone environment. However, the provided "Phone Format" options are not adequate and are a very bad idea, from a UX (User Experience) standpoint. Correcting a user's input, after the fact, is a terrible, terrible idea, if it can be avoided ahead of time.
I need the telephone number stored in the format:
'(999) 999-9999'
notice the space after the area-code parenthesis?
I also want to show the user the format as they are typing.
The format works correctly in the "Single Line Text" field and it shows the user the format as they are populating the field. However, as I eluded to earlier, I need the form's html to include:
'type="tel" '
for use on iPhones. I'm pretty sure masking is allowed on the "tel" input type and I know it defaults to "text" in browsers that don't yet support the "tel" input type.
How can I accomplish this with Gravity Forms?
Posted 12 years ago on Saturday October 6, 2012 |
Permalink