How to block all Sundays and specific dates on Date reservation widget?

  • ipunt
    Asked on July 28, 2017 at 1:07 PM

    The date reservation works but now I need to block all Sundays and specific dates.

    How would I do that?

  • Kiran Support Team Lead
    Replied on July 28, 2017 at 1:09 PM

    Unfortunately, there is no direct feature to block specific dates with the Date reservation widget. However, you may try injecting CSS code to the widget to block the dates.

    For blocking Sundays, you may inject the following CSS code to Custom CSS section of the widget.

    td:nth-child(7) {

    cursor: default!important;

    pointer-events: none;    

    opacity: .35;

    background-image: none;

    }

    I am checking on the code and instructions to block specific dates on the calender. Once I have any information in this regard, I'll post it here.

  • ipunt
    Replied on July 28, 2017 at 6:49 PM

    Hello Kiran,

     

    Thank you for your swift answer but it doesn't seem to work. Sundays remains selectable and not graded out.

     

    Also all the help with blocking certain dates would be very helpful.

     

    Regards,

     

    Ivo

  • ipunt
    Replied on July 28, 2017 at 7:17 PM

    The date reservation widget does not allow multiple entries on same date. This is not what I want.

     

    I just need an inline calendar with possible blocked dates.

     

    Any suggestions?

     

    I tried the date picker which has these options but it won't show INLINE. Unless I override this with CSS. But then again it will not hide again when a date is selected.

  • Kiran Support Team Lead
    Replied on July 29, 2017 at 1:16 AM

    Sundays remain selectable and not graded out.

    It is required to add the CSS code to the Custom CSS section of the widget. 

    How to block all Sundays and specific dates on Date reservation widget? Image 1 Screenshot 30

    After adding the code to the widget, it should be displayed as shown in the screenshot below:

    How to block all Sundays and specific dates on Date reservation widget? Image 2 Screenshot 41

    The date reservation widget does not allow multiple entries on the same date.

    Yes. Unfortunately, the date reservation widget doesn't allow the same date multiple times.

    I just need an inline calendar with possible blocked dates.

    Since we have the other thread open on this issue, we'll discuss this on that thread shortly.

    Thanks!

     

     

  • ipunt
    Replied on July 29, 2017 at 5:19 AM

    Thank you for your answer. 

     

    Any ideas how to bypass the one-time-only entry?

  • Mike_G JotForm Support
    Replied on July 29, 2017 at 9:43 AM

    I would like to apologize for any inconvenience, unfortunately, the Date Reservation widget is not designed to allow multiple selections in a single day.