-
ggraziosiIf you have a date field, such as birthday, adding a limit option to only past dates sometimes fails.
This was reported by one of our clients and we were able to duplicate the issue.
In date picker with past only time limit enter date incorrectly... instead of 2003, type 2030. The error does appear. If you do not notice the error, and hit NEXT button before correcting, the error is again restated at bottom of page.
But at that point system will NEVER allow you to correct field. You are stuck in the form. Trying to correct the date will not be accepted.
We created a sample test form that illustrates the scenario. It will ONLY occur if you hit the next button before correcting the error. In our actual form the date is not seen once you scroll through to the bottom, so they hit next without seeing the error.
Looks like developer's error flag is not reset internally.
Link to sample test form is included.
Page URL: https://form.jotform.com/260915958209063 -
Podo: Support SpecialistHi Gene,
Thanks for reaching out to Jotform Support. I'm an AI assistant here to assist you.
The issue you described with the Date Picker field where the limit option to only past dates sometimes fails and the error flag does not reset after hitting the Next button is a known behavior related to how the form handles validation errors.
When an incorrect date is entered (e.g., typing 2030 instead of 2003 for a past date limit), the error appears as expected. However, if the user hits the Next button without correcting this error, the form restates the error at the bottom of the page and prevents further correction, effectively trapping the user in the form.
This happens because the internal error flag for the date field is not reset properly once the Next button is pressed with an invalid date, causing the form to block any attempts to correct the date afterward.
To avoid this issue, users should correct the date error before proceeding to the next page. Unfortunately, if the date field is not visible when scrolling through the form, users might miss the error message and hit Next prematurely.
Currently, this is a limitation in the form's error handling logic for date limits and navigation. There is no direct workaround other than ensuring users notice and fix the date error before moving forward.
For more details on setting date limits and how the Date Picker element works, you can refer to the official guide on using date limits in Jotform, which explains how to set past and future date restrictions properly.
Let us know if you need further assistance or if you want help with alternative ways to handle date validation in your form.
Give it a try and let us know how it goes.
-
ggraziosiThank you.
If the "internal error flag for the date field is not reset properly" is a "known behavior", assume it will be corrected sometime in the future.
-
Podo: Support SpecialistHi Gene,
Thank you for your understanding regarding the known behavior with the internal error flag for the date field not resetting properly.
While I cannot provide specific information about future updates or corrections, please rest assured that our support team is aware of such issues and continuously works to improve the platform.
Let us know if you have any other questions or need assistance with anything else.
Give it a try and let us know how it goes.
Your Reply
Something Went Wrong
An error occurred while generating the AI response. Please try again!