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.
Disable Past Dates Isn't Working - Validation Error Disappears if the DateTime Fields is set as RequiredAsked by GD2Trial on December 09, 2013 at 12:32 PM
I have two DateTime fields in my form, one with the time section disabled and one with the time section enabled.
I've disabled past dates in each one, but it doesn't seem to be working in the one with time enabled. When I enter a past date, the date fields are bordered in red, but the warning message only flashes briefly and disappears, at which point I can tab through and continue the form even with a past date entered in the DateTime field.
However, in the DateTime field with time *disabled*, disabling past dates works just fine. When I enter a past date, the warning message appears, stays visible and prevents continuing without an appropriate date.
Is it possible to disable past dates for a DateTime field with the time section enabled?
Thank you for your help!
Your settings for both the DateTime field are correct. I did check the cause of the issue and found out that it was the required field validation conflicts with the Disable Past Dates function.
You'll see the difference to this form: http://www.jotform.co/form/33424183090852.
This is a glitch so let me forward this thread to our developers so they can further check and fixed the issue. While waiting, I would suggest to temporarily set the fields as not required.
Thanks for reporting and stay tune for updates.
Thank you for such a prompt response, and for the form demonstrating the difference.
I appreciate the suggested temporary fix as well, and I'll definitely stay tuned for updates.