Trying to lock down or restrict a form if the date is within five days of the current date

  • poolmanagementgroup
    Asked on May 27, 2016 at 7:13 PM

    I saw this post and it's close to what we want to do: https://www.jotform.com/answers/458036-Restricting-Dates-to-input

     

    The difference is, we would like to restrict the party form if it's within say five days of the current date.  All I'm finding is ways to make it work for a specific date, but we need ours for the current date so it will keep working all summer.  Any help is greatly appreciated.

  • Boris
    Replied on May 27, 2016 at 10:24 PM

    If I understand you correctly, you want to prevent your users from selecting a date that is 5 days or less from today. So they will be able to enter only a date that is at least 6 days from today.

    Yes, this is possible. On the DateTime field where your users are selecting a date, please simply set up a date limit:

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

    In the Limit Dates feature of a DateTime field, simply enter the following as the "Start Date" of the limit:

    today+5

    Trying to lock down or restrict a form if the date is within five days of the current date Image 1 Screenshot 30

    Upon doing that, the DateTime field will only allow them to select any date which is 5 days or more from today. As today is Saturday 2016-05-28, with the above date limit, the DateTime field would not allow selection of any date date before Thursday 2016-06-02:

    Trying to lock down or restrict a form if the date is within five days of the current date Image 2 Screenshot 41

    If you need further assistance, please let us know.