JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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 add a conditional statement "TO date not earlier than FROM date"?Asked by ourlander on October 10, 2016 at 06:43 PM
Is it possible to only allow selection of dates in TO field that are later than FROM field?
That's possible when you use the DateTime tool. Unfortunately, this feature is not available with any of the date widgets.
So if you'd like to use DateTime tool, here's how:
1. Open your FROM date field properties and get the field ID number under the advanced tab > field details.
2. Open your TO date field properties then enter the following in the limits tab > disable date ranges
Where 3 is the field ID of your FROM date field.
If you need further assistance, let us know.
Thanks so much for the reply. The reason we did not use that widget originally is because the layout look is ugly and there was a specific style requirement, is there a way we can make it look like ONE box instead of 3, even if its just a little hack of some kind?
Yes, the DateTime field can be switched into a single textbox field.
To do that, in the DateTime properties, go to Options tab and enable Lite Mode
Hope this helps!