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 can I disable all past dates except for the past 2 days from today?

    Asked by Sam  on March 09, 2017 at 09:38 PM

    I am trying to limit users date selections to be no later than the last 2 days. Everything else I try seems to knock out all past dates. 

    Page URL:

  • Profile Image
    JotForm Support

    Answered by candy on March 10, 2017 at 06:43 AM

    Dear Sam,

    We're sorry but it seems that it is not possible to disable all of the past except for last 2 days from today.

    I have forwarded this feature request to our software development team in order to consider implementing this.

    We're going to be informed you as soon as the feature will be implemented.

    Thanks in advance.

  • Profile Image
    JotForm Support

    Answered by Scott on March 10, 2017 at 11:44 AM

    Hey Sam,

    You can actually achieve this by pasting this expression, today - 3000 > today - 3, to the Disable Date Ranges area on your Date field.

    Let us know if you need further assistance,


    ps. It was quite an enjoyable problem to solve so thank you for that :)