Results 1 to 2 of 2

Thread: formcheck date DD/MM/YYYY

  1. #1
    New user
    Join Date
    06-25-12.
    Posts
    2

    Default formcheck date DD/MM/YYYY

    I have a problem with formcheck and validation of a date in Italian format "DD/MM/YYYY"

    during the validation I get the message
    'Enter the date in the format "DD/MM/YYYY" '

    i use:
    Contao 2.11.3
    formcheck "2.2.0 stable vers 6"

  2. #2
    New user
    Join Date
    06-25-12.
    Posts
    2

    Default Re: formcheck date DD/MM/YYYY

    in the file moo_formcheck.html5 and moo_formcheck.xhtml
    change

    Code:
        regexp : {
        		date: '<?php echo $strDateRegex; ?>',
        		datim: '<?php echo $strDatimRegex ?>',
        		time: '<?php echo $strTimeRegex ?>'
        	}
    to
    Code:
        regexp : {
        		date: <?php echo $strDateRegex; ?>,
        		datim: <?php echo $strDatimRegex ?>,
        		time: <?php echo $strTimeRegex ?>
        	}

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •