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.
How Do I Prevent My Form from Being Submitted If a Date Field Entry Is outside a Specified Range?Asked by SimonsTransports on March 10, 2015 at 07:53 PM
is there any way i can set my form date field to only allow dates between a certain period to be selected. e.g March 10, 2015 to April 30, 2015. So, if someone tries to input a date earlier than March 10, 2015 or later than April 30, 2015, it would not allow them to.
Yes, there is. This can be done by setting conditions on the date field to hide the submit button if dates outside of the specified range are entered. Have a look at this demo. If any date earlier than June 1, 2014 is entered, a notice is displayed and if any date later than June 30, 2015 is entered, a different notice is shown. In both cases the submit button is hidden and once the submit button on a jotform is hidden it cannot be submitted.
If you were to clone the demo and examine its conditions you would see the following:
That's pretty much how it's done but if you need assistance in implementing the solution in your own form, we'd be happy to help.