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

    Date Time Calender Trick to not select today nor tomorrow

    Asked by retrophonic on September 15, 2014 at 10:48 AM

    Having an issue with finding a solution with making the DateTime tool work for this particular form.
    I need the calender to work so that weekends can not be selected (which I've managed to do with the CSS code). But I need the calender to also make it so people can't select the current day or next day.
    I can't seen to find a solution from going through the forums.

  • Profile Image

    Answered by Carina on September 15, 2014 at 12:24 PM

    To hide today date you may inject the following css code:

    div.calendar tr.days td.today {



    For the next day I believe it is not possible by using CSS, but perhaps you can set up a condition that if selected day is today+1 then show Text field with warning message.

    You can test and clone the demo form:


    Let us know if we can assist you further.

  • Profile Image

    Answered by retrophonic on September 16, 2014 at 03:00 AM

    Thanks Carina thats perfect!!

  • Profile Image

    Answered by retrophonic on September 16, 2014 at 06:55 AM



    This worked great. However putting in a new rule so also past dates can not be selected is not working.

    I assume i'm doing the conditions wrong, but can't seem to get it to work.
    The +1 is working fine. Just the - dates are not.

  • Profile Image
    JotForm Support

    Answered by Welvin on September 16, 2014 at 08:57 AM

    Instead of the conditional logic, you can disable the date in the datetime field:


    Thank you!

  • Profile Image

    Answered by retrophonic on September 16, 2014 at 09:08 AM