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

    In the DateTime Field, Is There a Way to Disable All Dates Outside of a Specified Range?

    Asked by jewelryislove on August 08, 2015 at 03:26 PM

    Hi, I wanted to restrict my form so that only the next 7 days can be chosen and all future dates after that disabled. Is this possible?



    This is a re-post of a comment on How to Use the Date Limits Option

    Disable Date Ranges calendar picker restrict dates disable all but enable only specified range only all past and future outside of range not in range
  • Profile Image
    JotForm Support

    Answered by abajan on August 08, 2015 at 10:50 PM

    This is should be possible but there appears to be something buggy with the Disable Date Ranges feature. I'll shortly submit a ticket and the developer to whom it is assigned will get back to you once this is all sorted out.

    Our apologies for any inconvenience caused.

  • Profile Image
    JotForm Support

    Answered by abajan on August 09, 2015 at 11:00 AM

    My apologies. Upon consultation with a developer I realized that the feature is actually functioning correctly. To have all dates but the next seven (7) disabled, please do the following:

    1. Un-check the Past box in the Past & Future field

    2. Enter the following expression in the Disable Date Ranges field:
      today+8>today+32000

    3. Save the settings

    Please see the following screenshot:

    (Since the DateTime tool doesn't go beyond the year 2100, today+32,000 is a sufficient boundary for the end of the disabled dates range.)


    4. Save the form

    The above settings are in effect in this jotform. If you need further assistance with this we'd be pleased to provide it.

    Cheers

  • Profile Image

    Answered by jewelryislove on August 09, 2015 at 11:44 AM
    Worked perfectly! Thanks so much for this.
    ...
  • Profile Image
    JotForm Support

    Answered by abajan on August 09, 2015 at 07:01 PM

    You're quite welcome. Glad we could help.