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 prevent users to submit form if return date is before departure dateAsked by Catteralls on August 10, 2015 at 03:09 PM
Hi, if i have 2 fields ('Departure Date' and Return Date), is there a way of limiting it so that only dates on the same date or after can be selected in Return Dates? So you'd effectively be setting a disable dates before 'Departure Date'?
This is a re-post of a comment on How to Use the Date Limits Option
You can use "Limit Dates" feature to disable past days. However you can not prevent users to choose Return date that is before Departure date.
Possible workaround is to add Form calculation field that will calculate difference between dates and then if calculation is 0 or less you can use conditional logic to hide submit button so your users will not be able to submit your form if return date is before departure date.
Here is my demo form: http://form.jotformpro.com/form/52216217875962?
Hope this will help. Let us know if you need further assistance.
Hi, that works well! Thanks
Glad to hear it. Cheers!