Contact Form 7 Datepicker
Problem with setting default value (4 posts)

  1. vikkineal
    Posted 3 years ago #

    Hi, I'm trying to add a 'value' to my date field... I have no labels in the form and want the values to appear by default, then on click, they clear. I've managed to do this for all other fields in my form HOWEVER i can't even get the value to show in the date field to start with.

    I've tried the following

    <li>[date* date-545 id:callBackDate value="Date"]</li>

    <li>[date* date-545 id:callBackDate "Date"]</li>

    <li>[date* date-545 id:callBackDate "YYYY-MM-DD"]</li>

    <li>[date* date-545 id:callBackDate value="YYYY-MM-DD"]</li>
    and finally...

    <li>[date* date-545 id:callBackDate "%j / %n / %Y"]</li>
    But no joy.

    Any advice?


  2. hyshka
    Posted 3 years ago #


    I was just fiddling with this myself, I don't know if there is a way to do what you are asking.

    But I have found this for example:
    [date* departure value:"2012-12-28"]

    Pre-selects the date in the date-picker, but does not change the formatting or display in the text box.

    Let me know if you make any progress

  3. stripboek
    Posted 2 years ago #

    I have the same problem. The field is empty and only when you click on the field, the calender shows up. People can't see what this calender is for.

  4. Greginho
    Posted 2 years ago #

    Someone found the solution ?

    I tried these:

    [date* date-xxx id:x class:x "Date"]
    [date* date-xxx id:x class:x placeholder "Date"]

    But impossible to get something in this field... :(
    For the moment, it is blank: http://quentesens.com/contact

    When I use Firebug, I can see that my text appears in the code value="date"


    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7 Datepicker
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic