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

  • Profile Image
    Patrick Watson - FIT 
    Asked on January 27, 2016 at 10:46 AM
  • Profile Image
    Boris
    Answered on January 27, 2016 at 01:07 PM

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

    http://www.jotform.com/help/337-How-to-Use-the-Limit-Dates-feature-in-a-DateTime-field

    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.