• Resolved David Henry

    (@jane-blonde)


    Hi Guys,

    Great Plugin!

    I have added a date field which is manditory however it causes a validation error every time.

    I’ve tried using datepicker but it doesn’t fix the issue and is over kill for what I need.

    Should I just just change to something like [text* dd][text* mm][text* yy]?

    David

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

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

    (@takayukister)

    Date format should be YYYY-MM-DD (e.g. 2013-04-18).

    schelm

    (@schelm)

    Thank you very much!

    I think this information would be great in the FAQ 😉

    Another question in this direction: how may I change the date-format, e.g. in european format like DD.MM.YYYY (18.04.2013)?

    Best regards
    Daniel

    Hi Takayuki

    It is a great plugin.

    I have the same question and nowhere can I find the answer to this.

    How to change the date-format, e.g. in European format like DD.MM.YYYY (18.04.2013)? and where ? Inline formatting isn’t working with EI. Date works in Chrome with calendar pop up but in IE which is why we need to make this work in IE.

    Can you please help or at least you try it in IE and see the problem.

    I can see in the formatting.php file

    function wpcf7_is_date( $date ) {
    $result = preg_match( ‘/^([0-9]{4,})-([0-9]{2})-([0-9]{2})$/’, $date, $matches );

    which is clearly marked as sequence for non European format.([0-9]{4,})-([0-9]{2})-([0-9]{2})

    Should I change these to ([0-9]{2,})-([0-9]{2})-([0-9]{2})
    in formatting.php , shortcode.php , taggenerator.js . will this fix it?

    Can someone else perhaps help with this.

    @takayuki:
    i have a lot of problems with CF7.
    Spinning arrows, date format, mail not sent, date picker shown only in chrome and not IE or Firefox.

    We have noticed, there is a problem with jquery.
    as we downgraded jquery the mails were sent.

    the date picker instead doesnt work with IE and Firefox.
    doesnt matter what kind of format the client entered, alsways appear a date format error.

    i have a travel agency and the contact form is perfect for me…only if it works!! We have to disabled CF7 because of all the problems.

    Need some help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Date gives validation error each time’ is closed to new replies.