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

    Restricting entry if the submission date is sooner than 60 days before an event.

    Asked by pnaaf on December 06, 2016 at 09:45 PM

    Application requires date of request. Condition should be that the "end date/or event date" is less than 60 days from date of request. How can I create this condition

  • Profile Image
    JotForm Support

    Answered by Chriistian on December 07, 2016 at 12:30 AM

    If I understand correctly, you want to prevent the user from submitting the form if the user enters a Start Date that is sooner than 60 days when the request is made?

    To achieve this, you can use a Form Calculation widget to calculate the days between two dates. Please follow this guide on How to Perform Form Calculation Using a Widget

    You can then setup a Show/Hide condition that will hide the submit button if the calculation is less than 60 days, thus preventing the user from submitting the form. Here's our guide on How to Show or Hide Fields Base on User's Answer

    You can check out my demo form or clone it to your account to see the setup: https://form.jotform.com/63410984770965 

    PS: You can set the Date of Request field to current so that the field will automatically be filled with the current date when the form is being filled.

    Please let us know if you need further assistance.