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: Generate an error message between 2 date fields if a condition is not met.Asked by rsvpfree on February 20, 2015 at 06:18 AM
I have two fields on my form which were both created by clicking "Date/Time" under Quick Tools in the left-hand sidebar. Both are set to be Required fields.
One is called (ie, label says) "Start Date/Time" and the other is called "End Date/Time".
What I would like to do is prevent the user (with display of a suitable error message) from entering a Date/Time in "End Date/Time" which is earlier than the one in "Start Date/Time".
Can this be done, and if so how?
Sorry to say that but it is not possible to do this in the Jotform interface currently. A ticket was submitted for a feature similar to what you are requesting that could help you out but it is not yet implemented. For you to do such a comparison, I am afraid you will have to make adjustments to the source code for the form.
However, I will pass this information on to our development team so that they can look into its implementation also. I can not say when this will be completed but I can assure you that once this feature is available, you will be notified via this thread. We will be in touch.
Thanks Sean. I will look forward to this!
I have moved your request to a new thread as we aim at having only one user/question per thread.
You can find it here:
Let us know if we can assist you further.
Sorry for the delay, this is now possible. You can enter the first date id as the start date in the date limits for the second field:
The id for each datefield are listed at the bottom of the datetime limit wizard.
Here is an example: