How to allow dates for only last 20 days?

  • CHAD
    Asked on July 10, 2017 at 11:16 PM

    Hello,


    I'm building a form and I need to disable date ranges. I need people only to select dates 20 days ago. For example if someone is submitting a form on July 30 he can not choose July 30 on the form, instead he can only choose July 10 and backwards. How can I do this? Thanks!

  • Nik_C
    Replied on July 11, 2017 at 3:18 AM

    Here is how you can do that:

    1) Add date field:

    How to allow dates for only last 20 days? Image 1 Screenshot 40

    2) Go to its properties and then limits:

    How to allow dates for only last 20 days? Image 2 Screenshot 51

    Disable future dates there like in the above image.

    3) Scroll a bit down and set Disable date range:

    How to allow dates for only last 20 days? Image 3 Screenshot 62

    Set any date long in the past, I set 1990 and the range will go until 20 days ago. So dates will be disabled from set date until today minus 20.

    Here is my test form so you can check: https://form.jotformpro.com/71911172959968

    Let us know if you have any further questions.

    Thank you!