Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #737651

    Hi guys,

    Similar to a recently posted query here and using the information there, I have managed to disable the dates 27 and 29 on my reservation form with the following:

    beforeShowDay: function(date) {
    var day = date.getDay();
    function IsChineseNewYear(date) {
    var day = date.getDate();
    var month = date.getMonth() + 1;
    return (day === 27 && month === 01);
    }
    return [(day != 0 && !IsChineseNewYear(date))];
    },

    Please can I ask how I can disable the date 28 as well? Thank you very much!

    #739507

    Hey Jon,

    Please change following line

    
    return (day === 27 && month === 01);
    

    to

    
    return (day === 27 && month === 28 && month === 01);
    

    Best regards,
    Yigit

    #739724

    Thanks so much Yigit! Please direct me to a statue of you so that I and my fellow Enfold users can head on down there to worship at your feet! Brilliant support as always!

    #739828

    Hi,

    Glad we could help!
    Please take a moment to review our theme on themeforest https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Vinay

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Disabling Date Range – Contact Form’ is closed to new replies.