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

    Hey there Kriesi support team,

    I`ve got a question regarding the datepicker option coming with the build-in contact form. Is there any way to disable selecting a certain day of the week?

    Following problem: I am managing a site for a restaurant, which is closed on Mondays. Now I want customers to reserve a table via the contact form. As part of usability/UX improvements I don’t want them to be able to select Monday to reserve a table.

    I hope you got my problem and hopefully there’s a solution for that.

    Thanks in advance!

    #617003

    Hey andreasobermeier!

    Please go to enfold/framework/php/class-form-generator.php file and find following line

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

    and add following right below it

    beforeShowDay: function(date) {
            var day = date.getDay();
            return [(day != 1)];
        },

    Best regards,
    Yigit

    #617415

    Hi Yigit,

    wow, just thank you for this support. I am really happy!

    Best wishes,

    Andreas

    #617423

    Hi!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Datepicker issue/nice to have’ is closed to new replies.