how to disable the sunday's dates on the calendarview

  • Profile Image
    maxsouzedo
    Asked on October 22, 2013 at 03:13 PM


     

    Hi,

    How can i disable the sundays dates? I dont want the user select the sundays days of the calendar.

    Can I put an warning message when he clicks the sunday dates? like when he clicks invalid dates?

    sunday days 

    warning message


  • Profile Image
    Welvin
    Answered on October 22, 2013 at 04:56 PM

    Good day!

    Unfortunately, that is not possible in our form builder. That can somehow be achieved by downloading your form files and modifying the "calendarview.js" file. This also requires you to embed and upload the form files to your own server. We can help you about this matter. Just please let us know.

    Thanks

  • Profile Image
    maxsouzedo
    Answered on October 22, 2013 at 05:38 PM

    I already download my form files and embed and upload to my server.

    Whats the next step?

     

    Thanks

  • Profile Image
    Welvin
    Answered on October 22, 2013 at 06:30 PM

    We'll try to come up for the solution later today. Here's our reference: http://www.dynarch.com/jscal/#disabling-dates. We need to find, adjust and execute this to our existing Calendar File. Please stay tune for updates.

    Thank you!

  • Profile Image
    ardy0689
    Answered on October 22, 2013 at 10:06 PM

    In addition to my colleague's suggestion, you may want to try disabling the "Sundays" by injecting a custom CSS code:

    .days > .weekend:first-child{

    visibility:hidden !important;}

     

    Please refer to this guide on How to Inject a Custom CSS Code

     

    The above CSS code should disable the Days on Sunday weekends and can not be selected