• Hi,

    Please help me! I installed a Contact Form, the Contact Form 7 Datepicker. I’ve set it up, everything works, but when I choose the date at https://dev.csaszardent.hu/idopontfoglalas, then I click on the button to send “Invalid date supplied.” make a mistake. I tried many things but I did not succeed. Please help solve this problem. Thank you very much in advance!

    Regards,
    Károly

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter karolycsucs

    (@karolycsucs)

    I use this code line. I’ve also tried the “yyyy/mm/dd” code.

    [date date-892 date-format:yyyy-mm-dd min-date:today first-day:1 change-month placeholder “Dátum*”]

    Hy karolycsucs,

    I have the same problem for some webpage and form but just on hungarian language, as I can see you have the same problem for .hu language?

    My ticket: https://www.ads-software.com/support/topic/invalid-date-supplied-for-hungarian-language/#post-9589246

    But still no answer or feedback what exactly to do ?? Hope we will find some solution for our problems.

    webdirektinfo

    (@webdirektinfo)

    Hi, I have the same problem, but as I read the tickets, it seems like the authors doesn’t really care about it. They closed the other ticket saying it’s spam, but had no interest in helping, not saying a single word. So is there a solution for this issue?

    pshwebsite

    (@pshwebsite)

    Hy webdirektinfo,

    yes, I found a solution, but without the support and author. Here are the steps:

    1. Create a contact form for HU language
    2. install CUSTOM CSS & JS plugin, there go to add new “Add custom JS”
    3. add this code:
      jQuery(document).ready(function( $ ){
          
        jQuery(function($){
        $('input[name="<strong>field_name_checkin_hu</strong>"]').datepicker({"dateFormat":"yyyy-mm-dd","firstDay":1,"changeMonth":true,"controlType":"slider","addSliderAccess":true,"sliderAccessArgs":{"touchonly":true},"stepHour":1,"stepMinute":1,"stepSecond":1,"minDate":"today"}).datepicker('option', $.datepicker.regional['en-US']).datepicker('option', 'minDate', "today").datepicker('option', 'maxDate', "").datepicker('refresh');
      });
        
        
        jQuery(function($){
        $('input[name="<strong>field_name_checkout_hu</strong>"]').datepicker({"dateFormat":"yyyy-mm-dd","firstDay":1,"changeMonth":true,"controlType":"slider","addSliderAccess":true,"sliderAccessArgs":{"touchonly":true},"stepHour":1,"stepMinute":1,"stepSecond":1,"minDate":"today"}).datepicker('option', $.datepicker.regional['en-US']).datepicker('option', 'minDate', "today").datepicker('option', 'maxDate', "").datepicker('refresh');
      });
        
        
      });
      
      </li>
      </ol>

      The problem solved with this. Just keep to adapt to your form names, I bolded the only 2 names that you need to change (field_name_checkin_hu, field_name_checkout_hu).

      I hope it can help you.

    webdirektinfo

    (@webdirektinfo)

    Thank you for your help!

    pshwebsite

    (@pshwebsite)

    Hope you solved it ?? Regards.

    Hi @pshwebsite!

    Thanks for posting the code. It works for me when I replace the field_name_checkin_hu and field_name_checkout_hu parts with my datetime name, but the resulting calendar is in English (except for the Hour and Minute part towards the bottom).

    Whenever I add checkin_hu/checkout_hu or just _hu to the end of my datetime name, the calendar will switch back to Hungarian, but the date won’t validate.

    I also tried modifying datepicker.regional['en-US'] to datepicker.regional['hu-HU'], which made the calendar in Hungarian, but still wouldn’t validate.

    Any ideas? Thanks!

    • This reply was modified 6 years, 12 months ago by miroslav.
    • This reply was modified 6 years, 12 months ago by miroslav.
    • This reply was modified 6 years, 12 months ago by miroslav.
    • This reply was modified 6 years, 12 months ago by miroslav.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Invalid date supplied’ is closed to new replies.