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.
How to enable only certain days of week in calendar?Asked by tlecras 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.
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 Ashwin. We'll just stick with what we have.
Let us know if you need more assistance on this to proceed.
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.)