How Do I Prevent My Form from Being Submitted If a Date Field Entry Is outside a Specified Range?

  • Profile Image
    SimonsTransports
    Asked 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.  

  • Profile Image
    abajan
    Answered on March 10, 2015 at 10:03 PM

    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.

    Thanks