What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How to enable only certain days of week in calendar?

    Asked by tlecras on December 25, 2014 at 10:31 PM

    Hi. 

    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.

    Page URL:
    http://form.jotformpro.com/form/43565767344970

    selected select enable certain days select certain days calendar
  • Profile Image
    JotForm Support

    Answered by ashwin_d 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 by tlecras on December 26, 2014 at 11:50 AM
    Thank you Ashwin. We'll just stick with what we have.
    Thanks.
    ...
  • Profile Image
    JotForm Support

    Answered by Charlie on December 26, 2014 at 12:52 PM

    Hi,

    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
    JotForm Support

    Answered by abajan on December 26, 2014 at 03:07 PM

    @tlecras

    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.)

    Thanks