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.
Feature Request: Date Field display only past dates, i.e. today or before?Asked by RDTS on August 08, 2014 at 06:51 PM
I know the field offers a feature to disable past dates, but is the opposite feasible? I need submitters to indicate the date something happened, which may be today or before, but not in the future.
DateTime Field displays past dates, but if the user selects a past date it shows an error message that "Date must not be in the past."
For now the DateTime Field only has the option of disabling Past dates but I will forward a feature request so that the option of disabling future dates might be taken into consideration.
For now you can try a workaround that is adding a Text field with a warning message and then adding a condition so that if "DateTime" is after today then show the warning message:
You can also add an extra condition that if the date is after today, the next or submit button might be hidden.
Let us know if further support is needed.
The Birth Date Picker might be a better option. It does not future years. In fact, you can customize the year range.
You might prefer the mini calendar in the date picker. In my opinion, selecting dates on a dropdown is easier/faster than using a calendar.
Good morning to both of you!
I think this feature would be very useful with the calendar. I will try the workaround using conditions in the meanwhile.
As for the option of using the Birth Date Picker, it's great that the year range can be customized so easily, but you can't get precise enough to limit dates after today. I also agree that in some situations the calendar is not always the easiest tool! But since our form is going to be used on a very regular basis on mobile devices to log events that occurred within the last few days, the calendar makes it more convenient to choose a date starting from today and refer to days of the week to avoid mistakes. (ex. "What was last Thursday's date again? Hold on, I will check on my calendar..." On mobile devices, this implies switching back and forth from an app to another)
In all cases, thanks for your answers, they were pretty useful and I look forward to the upcoming implementation of this useful feature!
Thank you both and have a great day!
We do understand where you are coming from. At the moment there really is no other alternative to block out dates ahead of time unless it is done via our Reservation Widget or through the two methods mentioned above with a custom calculation or even some other custom workarounds if you have the knowledge to do so which could be set to limit it.
If and when something like this is added then we'll update you about it here.
Your request was moved into a new thread so we can address it better. Our support team will answer it in this new thread.
Please get back to us if further support is needed.
Awesome! Thank you.