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 do I add a validation rule to the "Dates Difference" widget

    Asked by cancanmobile on January 14, 2017 at 05:27 AM

    My form requests a valid ID date range, and therefore should not accept IDs that are already expired or will expire within 90 days. I would like to add a validation rule to the expiry date to prevent users from entering ineligible ID data. 

    Page URL:

  • Profile Image
    JotForm Support

    Answered by Jim_R on January 14, 2017 at 04:01 PM

    I'm afraid the Dates Difference Widget doesn't have any advanced options for validation. The only thing you can limit / validate would be the days of the week (e.g. whether you want to exclude any specific day).

    You may only achieve what you're hoping to do with our regular DateTime field.

    Here, you have a variety of options in limiting which date(s) are valid or not upon your discretion:

    - Days of the week 

    - Past & Future 

    - Start & End Date 

    - Disable Custom Dates 

    - Disable Date Ranges 

    Complete guide: How-to-Use-the-Date-Limits-Option

    Give that a spin and don't hesitate to let us know if you'd need more help.