Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #391051

    Hello.
    I need to help for datepicker’s configuration options in the function of the contact form .
    I was successful to change some settings with directly hard-coding in “datepicker.min.js”. For example, MinDate, MaxDate etc. But I don’t know whether it is appropriate to direct hard-coding the “datepicker.min.js” Or “class-form- generator.php”
    In conclusion, I want to know how to set to disabled the weekend.

    Then, please answer
    Thanks.

    • This topic was modified 9 years, 10 months ago by vocalman77.
    #391586

    Hey vocalman77!

    Open up /enfold/framework/php/class-form-generator.php and on line 366 you should see this.

    echo 'jQuery(document).ready(function(){ jQuery(".avia_datepicker").datepicker({
    

    Add this beneath it.

    beforeShowDay: jQuery.datepicker.noWeekends,
    

    Best regards,
    Elliott

    #391799
    This reply has been marked as private.
    #392271

    Hi!

    That’s a bit more complex. I found this which you may be able to use though, http://davidwalsh.name/jquery-datepicker-disable-days.

    Regards,
    Elliott

    #393584
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Datepicker's configuration of the contact form’ is closed to new replies.