• Resolved whimsical07

    (@whimsical07)


    Hello, I want to create a form using Contact Form 7 a bit specific. Indeed, I want the user to be obliged to enter his date of birth with the format DD / MM / YYYY and this, whatever the browser. I added the code to the functions.php file (as shown in this link: https://contactform7.com/faq/does-contact-form-7-support-html5-input-types/) and added In my form this: [date * your-date min: 2013-01-01 max: 2013-12-31 step: 7 class: required “2013/04/01”] but it does not work … Also, I Wishes that when the user clicks on the field designated on the date of birth, a message informs him that “the format expected is this one DD / MM / YYYY”. Thank you in advance !

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter whimsical07

    (@whimsical07)

    Hello. Since I could not get it, I downloaded the plugin (extension) “Contact Form 7 Datepicker” that seems to get the job done. On the other hand, as indicated in my first message, I would like to add a message when the visitor clicks on the form so that under the field of the date of birth, appears “thank you to enter your date of birth with the format JJ / MM / YYYY “. I eventually thought of javascript code but would you tell me which one and especially where I have to put it? In a php file? Javascript? I am looking for but I can not find ?? Thank you in advance.

    • This reply was modified 7 years, 10 months ago by whimsical07.

    You could add placeholder text so that your users know the expected format. I have added the following, which has reduced the number or user errors:

    placeholder "YYYY-MM-DD"

    Thread Starter whimsical07

    (@whimsical07)

    Thank You ! It’s ok

    • This reply was modified 7 years, 4 months ago by whimsical07.

    Is their any option for years count.. if anyone select date of birth.. his Year count self and show on screen and also receive in submissions also

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Contact form 7 : Problem birth date DD / MM / YYYY’ is closed to new replies.