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

  • Profile Image
    cancanmobile
    Asked 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. 

  • Profile Image
    Jim_R
    Answered 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.