WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. vikkineal
    Member
    Posted 2 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>
    and

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

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

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

    http://wordpress.org/extend/plugins/contact-form-7-datepicker/

  2. hyshka
    Member
    Posted 1 year ago #

    Hello,

    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.

    Cheers,
    Let me know if you make any progress

  3. stripboek
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Up!
    Someone found the solution ?

    I tried these:

    [date* date-xxx id:x class:x "Date"]
    or
    [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

About this Topic