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 get alert when departure date is earlier than arrival dateAsked by pieterjanderks on March 02, 2015 at 03:02 AM
I want to add a condition with the date pop-op funtion.
When someone enters a value af the departure date, that is earlier than the Arrival date, I want them to let them know that the dparture date has to be later than the arrival date?
How can I get this alert?
settings builder date alert date popup
When you say alert, you mean to say a warning message?
How about using check-in check-out widget where users can't pick dates later than the check in date? You can get it here: http://widgets.jotform.com/widget/check_in_check_out
However, if you want to use the default DateTime fields, you can achieve that with condition.
1. First, get the calculation of the two dates. Formula is departure - arrival
2. Create a condition that if the result is negative (meaning departure is earlier than arrival), show a warning message. You can compose a warning message using Text tool under Form Tools.
3. Otherwise if the result is negative, no warning message will appear.
Clone this form so you can figure out how I setup these fields and the single condition.
If you need further help, let us know.
This gives me a lot of trust!
I am going to give it a try!!
Thanks EltonCris for your support!!