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.

  • Profile Image

    How to prevent form submission if date is less than a week from now

    Asked by bronzepig on November 25, 2016 at 05:41 AM

    I've set up a date field for reservations. The service is only available on Wednesday through to SUnday so Monday and Tuesday are omitted. I'd also like to prevent date selection if it is less than seven days from todays date. So either check that the selected date is '>= today+6'  then allow. Or '<=today=5 then don't validate'  I can't seem to be able to configure the logic though - any help appreciated!

    Page URL:

  • Profile Image

    Answered by Boris on November 25, 2016 at 06:10 AM

    I see that you are working on form 63203008452343, and the condition you are looking for can be applied easily. The following guide describes how to generally show/hide form fields based on your user's response:


    We will simply set up a condition to hide the Submit button if date is before today+7, as depicted in the following image:

    Please try it out, and let us know how it goes.