relu / contact-form-7-datepicker

Datepicker for Contact Form 7 Wordpress Plugin based on JQueryUI's datepicker (NO LONGER MAINTAINED)
http://wordpress.org/plugins/contact-form-7-datepicker/
28 stars 34 forks source link

[SOLVED] Fallback Text Field | Contact-form-7-Datepicker for JavaScript Disabled browsers? #142

Open khalilgharbaoui opened 8 years ago

khalilgharbaoui commented 8 years ago

what are the options on this issue? when using "inline" function

it completely disappears and takes the form field with it.

khalilgharbaoui commented 8 years ago

I found a manual solution for this by adding a text field called "date" as fallback, wrapped inside "noscript" tags right after your datepicker shortcode, which i wrapped in "script" tags and used javascript 'document.write' to make it show up.

example:

<script>document.write('[date* date inline size:10 maxlength:10 date-format:dd.mm.yy min-date:0 months:1 first-day:1 change-month  change-year placeholder "dd.mm.yyyy"]');</script>
<noscript>[text* date 10/]</noscript>

This works perfectly as fallback, the text field is visible when javascript is off, and the datepicker is visible when javascript is on.

Greetings, Khalil Gharbaoui

khalilgharbaoui commented 8 years ago

But this is not a solution out of the box. please find fix for this in future updates?

Greetings, Khalil Gharbaoui