Choice calendar date from today

Home Forums Quform WordPress Choice calendar date from today

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34530
    veganwebagency
    Participant

    Hi,

    We have a calendar field and use your “min date” function.

    At the moment all dates before today are removed and completly empty.
    If it’s the last day of the month it looks pretty odd. 😜

    Would it be possible to add for example an “x” or show the numbers with a disable class?

    We tried a custom javascript solution but it doesn’t get the “click” inside the calendar:

    $(document).on('click','.k-header',function () {
    removeEmptyDates();
    });

    function removeEmptyDates() {
    $('.k-content td').each(function() {
    var content = $(this).html();
    if (content == ' ') {
    $(this).append('<span>x</span>').addClass('empty');
    }
    });
    }

    Thanks for your help!
    Best Regards,
    Chrigi

    #34533
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #34540
    veganwebagency
    Participant

    Hi Ally,

    Worked like a charm as always. 🙂
    Thanks a lot!

    Best Regards,
    Chrigi

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy