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.
How to disable a date range based on a current dateAsked 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.
This is a re-post of a comment on How to Use the Date Limits Option
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.
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.
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.
Thank you so much for the follow up post.
That is just what I needed and it is working great!
Worked perfectly! Thank you so much!
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.
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
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!