How to enable only certain days of week in calendar?

  • Profile Image
    Asked on December 25, 2014 at 10:31 PM


    I am looking for a way to edit a calendar so that only Thursdays are available to be selected. We are trying to create a form for our clients to select a day to be featured in our weekly e-newsletter. This newsletter gets emailed every Thursday. I tried the reservation and appointment widget but could not figure out how to limit calendar selections to only Thursdays.

  • Profile Image
    Answered on December 25, 2014 at 11:48 PM

    Hello tlecras,

    Unfortunately it is not possible to achieve your requirement in the form editor. 

    It would require custom script code added to your form's full source code. If it is acceptable to you, I will try to come up with some custom solution but please be noted that you will not be able to add the code in form editor. You will have to host the form's source code in your own hosting server.

    I will wait for your confirmation before starting the work.

    Thank you!

  • Profile Image
    Answered on December 26, 2014 at 11:50 AM
    Thank you Ashwin. We'll just stick with what we have.
  • Profile Image
    Answered on December 26, 2014 at 12:52 PM


    I'm also checking your concern and it seems that it is quite hard to accomplish it using only the existing features of the form builder. As my colleague, ashwin, mentioned, we can create a custom javascript for you, but that would mean you will need to embed your full source code in your website.

    Let us know if you need more assistance on this to proceed. 

    Thank you.

  • Profile Image
    Answered on December 26, 2014 at 03:07 PM


    Just to clarify, while it's possible to inject CSS which would allow only Thursdays to be shown, due to the way the calendar is coded, it's not possible (without using the full source and a custom script) to prevent selection of other days. For example, even though the calendar in this clone of your jotform displays only Thursdays, once any of the buttons indicated in the screenshot below is clicked, in most instances the user will be directed to a day other than Thursday:

    (When the day selected by the user isn't a Thursday, the selection won't be shown on the form but it will be submitted along with the other data entered.)