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 restrict date entries in a field to 5 days from today's date. This field should be automatically populated and cannot be changed by the user

    Asked by Patrick Watson - FIT  on January 27, 2016 at 10:46 AM
  • Profile Image

    Answered by Boris on January 27, 2016 at 01:07 PM

    You can restrict dates on a DateTime field by using the Limit Dates feature:


    For example, to allow your users to only select dates that are between today, and 5 days from now, you can use today as the Start Date, and today+5 as the End Date.

    Please refer to the image below for visual guidance:

    It will result in all dates being disabled in the DateTime field, except for today and the next five days, as can be seen in the following image (today is January 27):

    Let us know if you run into any issues in setting it up, and we will be happy to help.