How to allow selection of only weekdays and not weekends in date picker widget?

  • mackayjames
    Asked on March 2, 2015 at 11:23 AM
    For the date picker widget, is it possible to make it so that the user can only select weekdays as the buisness is not open on the weekends/holidays...
  • Ashwin JotForm Support
    Replied on March 2, 2015 at 11:51 AM

    Hello mackayjames,

    Well it is currently not possible to hide the weekends from the "Date Picker" widget. 

    I would suggest you to add normal "DateTime" field in your form and then inject the following custom css code to hide the weekends from the calendar:

    .days td:first-child,

    .days td:last-child {

    visibility: hidden;

    }

    The following guide should help you on how to inject custom css code in form:  http://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes 

    Please check the screenshot below:

    How to allow selection of only weekdays and not weekends in date picker widget? Image 1 Screenshot 20

     

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!