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

    Limiting dates based on a date enetered in another field

    Asked by orangetheoryfitnessnaples on December 09, 2016 at 03:52 PM

    How can I limit the suspension end date to between 30 after suspension start date and 60 days after suspension start date. 

    Page URL:
    https://form.jotform.com/63434227967161

    Screenshot
  • Profile Image
    JotForm Support

    Answered by Boris on December 09, 2016 at 05:40 PM

    Yes, this functionality is possible in the following way.

    1. We add a custom error message to the form, by using a Text field:

    2. We perform a calculation to get the difference between the End Date and Start Date:

    https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget

    Two things about the calculation.

    2a. We should set it to "Wait for input before including the field in calculation":

    2b. This Form Calculation field can be hidden on the form, but I'll leave it visible in the demo. To hide the field, click its down-pointing arrow, and click Hide Field:

    3. Finally, we set up a show/hide condition to show our custom error message and hide the Submit button if the calculation is less than 30 or greater than 60:

    https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    Please see the following demo form of the above setup to check whether the above explained setup is working to your satisfaction:

    https://form.jotformpro.com/form/63436699755979

    If you need further clarifications or assistance, please let us know.

  • Profile Image

    Answered by orangetheoryfitnessnaples on December 10, 2016 at 08:56 AM

    Thank you!