Contact form: Add "tel" and "time" fields
As suggested here: http://wordpress.org/support/topic/contact-form-date-and-hour?replies=2
It seems like there is some code in there for displaying a date type already, but I'm not able to get to it in the form builder when I add a contact form. Am I missing the rest of the date type code, or was it added and not finished?
related commit: 40e7bbe8de7f42a528ed2854bd49e738dcb2b4d0
I second this request.
Adding tel, time and date fields would greately improve the usefulness to end users. If you manually add type="date" to a field a datepicker shows, so some work has been done here.
:)
Thanks for the attention. Much appreciated!
:+1:
Modified the title, as "date" is part of 3.4. Punting on "tel" and "time", this would be a good first patch for someone to pick up if they are interested...
Also requested here: https://wordpress.org/support/topic/date-time-file-inputs?replies=1&view=all
From #3270, cc @bisko
While I was working on #3215 I noticed that the
telephonefield has been partially added to the Contact Form code, but it is not working properly.It seems the field has no way to be selected and added to the form. It is missing from the dropdown, when creating a new Contact Form, which means that I have to add it by hand in the shortcode.
If I add it by hand it renders broken HTML - an
inputfield, followed by atextarea. This behavior is caused by a missingbreakstatement here.If saved, the
textareavalue overwrites theinputfield value.I see that the field is saved in the post content of the saved feedback form and it is not added as a part of the author meta fields. This can lead to a problem at some point with rendering and/or export of the forms. Currently if the field is saved (and the above mentioned
breakbug gets fixed), there is no way to see it in the admin, without choosingediton the resulting feedback form post.
2782717-t
How is the progress on the date contact-field? When I used type="date" on my form, clicking within the field causes an non-styled calendar to pop-up. but when clicking the right arrow caused the correctly styled calendar to pop-up. Do you know when this will be fixed? It's very close but not good enough for a production site.
@frank909 This issue will most likely be addressed in #3578. We'd need to make sure the date picker is always available, and takes existing values into account.
Done in #7819!