How can I disable all past dates except for the past 2 days from today?

  • Sam
    Asked on March 9, 2017 at 9: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. 

  • candy
    Replied on March 10, 2017 at 6: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.

  • Scott JotForm Developer
    Replied 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.

    How can I disable all past dates except for the past 2 days from today? Image 1 Screenshot 30

    How can I disable all past dates except for the past 2 days from today? Image 2 Screenshot 41

    Let us know if you need further assistance,

    Cheers.

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