How to disable a date range based on a current date

  • Profile Image
    Asked on May 27, 2015 at 10:07 AM

    Thank you for this improvement. I would like to be able to limit date selection to "today+6" ... in other words, users can't select a date until it is 6 days from the current day.

    I can do this in the form validation, but I can't seem to do it in the datetime limit functionality.


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

  • Profile Image
    Answered on May 27, 2015 at 11:34 AM

    Hello swamprabbitcafe,

    In order for you to allow your users to limit the date selection to 6 days from today, please go ahead and use the Date Reservation Widget. Do as Follows:

    1 - Open your form in edit mode, go to the Widgets section and drag Date Reservation(1), the Date Reservation Settings screen will pop up, fill in the blanks and click on Finish when done:


    I hope this information helps. If any other question please do not hesitate to contact us.


  • Profile Image
    Answered on June 16, 2015 at 02:38 PM

    I was also looking for the ability to limit date selection to "today+6".

    Unfortunately, the Date Reservation Widget only allows you to specify a maximum number of dates that can be selected for one range. This is fine for when you're reserving a room or cabin or flight for several consecutive days, but does not work for me.

    The DateTime drag-and-drop field allows you to disable past dates or future dates, which is close but not quite what I need. None of the other widgets appear to suit my needs either.

    For my custom project estimate inquiry form "Quote Request", I want the deadline date picker to allow for a 6-day "lead" time, because the process of customization and shipping/delivery usually takes 6-10 business days.

    This "Lead Days", "Advance Days", "Turnaround Days" or "Start Days From Now" field should work similar to my online bank's bill pay feature. In most cases, you can't specify a Pay On date of today. You have to pick 2-10 days in advance to allow for processing, handling, and/or mailing.



  • Profile Image
    Answered on June 16, 2015 at 03:41 PM

    It appears that the Limit Dates option has been already improved.

    Now you can disable the date ranges based on the current date. In order to do this, use the following format:

    today>today+6 (to disable the next 6 days)

    today-6>today (to disable the past 6 days)

    Please feel free to contact us if you need any further assistance.

  • Profile Image
    Answered on June 17, 2015 at 02:46 PM


    Thank you so much for the follow up post.

    That is just what I needed and it is working great!



  • Profile Image
    Answered on June 18, 2015 at 09:56 AM


    Worked perfectly! Thank you so much!

  • Profile Image
    Answered on July 01, 2015 at 10:37 PM

    hi Jotform,



    Disable Date Ranges  in Limit Dates is not working
    with me, i need to disable date range from today > today + 30, but it not work.

    i tried : 2015-07-21>2015-07-25, it work perfect but it not what i need.

    plz fix it, thanks

  • Profile Image
    Answered on July 02, 2015 at 07:17 AM


    We'll check it out and get back to you shortly. I've moved your post to a separate thread: and it will be answered there.


  • Profile Image
    Answered on August 23, 2015 at 11:55 AM

    hi, from yesterday my Disable Date Ranges is not working for me.

    i use this code "today>today+1" to remove the tomorrow selection.


    it was fine until yestarday

  • Profile Image
    Answered on September 29, 2015 at 08:21 PM


    I'm still having trouble with my Disable Date Ranges. I would like for someone to choose a date 60 days after the day's date. For example, if it is September 20, I want the first date that they are able to choose to be approximately November 20. I've read the post, but perhaps I am doing it incorrectly. Thank you!