jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Contact form: Add "tel" and "time" fields

Open richardmtl opened this issue 12 years ago • 13 comments

As suggested here: http://wordpress.org/support/topic/contact-form-date-and-hour?replies=2

richardmtl avatar Feb 26 '14 20:02 richardmtl

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?

enkrates avatar Aug 06 '14 21:08 enkrates

related commit: 40e7bbe8de7f42a528ed2854bd49e738dcb2b4d0

jeherve avatar Aug 06 '14 22:08 jeherve

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.

boboz avatar Feb 04 '15 19:02 boboz

:)

boboz avatar Feb 06 '15 10:02 boboz

Thanks for the attention. Much appreciated!

boboz avatar Feb 17 '15 13:02 boboz

:+1:

boboz avatar Mar 04 '15 11:03 boboz

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...

samhotchkiss avatar Mar 12 '15 04:03 samhotchkiss

Also requested here: https://wordpress.org/support/topic/date-time-file-inputs?replies=1&view=all

jeherve avatar Sep 21 '15 12:09 jeherve

From #3270, cc @bisko

While I was working on #3215 I noticed that the telephone field 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 input field, followed by a textarea. This behavior is caused by a missing break statement here.

If saved, the textarea value overwrites the input field 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 break bug gets fixed), there is no way to see it in the admin, without choosing edit on the resulting feedback form post.

jeherve avatar Jan 14 '16 19:01 jeherve

2782717-t

v18 avatar Aug 18 '16 03:08 v18

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.

frankthoeny avatar Aug 19 '16 23:08 frankthoeny

@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.

jeherve avatar Aug 22 '16 08:08 jeherve

Done in #7819!

dereksmart avatar Feb 23 '18 03:02 dereksmart