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 to disable a date range based on a current date

    Asked by swamprabbitcafe 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.

    Thanks!



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

    limit date disable dates date rage datetime
  • Profile Image
    JotForm Support

    Answered by Aury 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 by Marfieldcom 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
    JotForm Support

    Answered by Mike 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 by swamprabbitcafe on June 17, 2015 at 02:46 PM

    Mike,

    Thank you so much for the follow up post.

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

    Cheers,

    Erin

  • Profile Image

    Answered by Marfieldcom on June 18, 2015 at 09:56 AM

    today>today+6

    Worked perfectly! Thank you so much!

  • Profile Image

    Answered by vroto on July 01, 2015 at 10:37 PM

    hi Jotform,

     

    The

    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
    JotForm Support

    Answered by abajan on July 02, 2015 at 07:17 AM

    @vroto

    We'll check it out and get back to you shortly. I've moved your post to a separate thread: http://support.jotform.com/answers/601577 and it will be answered there.

    Thanks

  • Profile Image

    Answered by cantinacaprai 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 by incarnation on September 29, 2015 at 08:21 PM

    Hi,

    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!

  • Profile Image

    Answered by grade4pagasa on September 29, 2015 at 11:14 PM

    is it possible to set a limit in hours (instead of days) using the DateTime field?

    for example, the selected appointment should at least be (6 or 12) hours from the current time.

    thanks.