How do I add a validation rule to the "Dates Difference" widget

  • cancanmobile
    Asked on January 14, 2017 at 5: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. 

  • Support_Management Jotform Support
    Replied on January 14, 2017 at 4: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).

    How do I add a validation rule to the Dates Difference widget Image 1 Screenshot 20

    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.