How can I restrict dates using validations?
For some types of forms, two sets of dates can have restrictions. For example, two date fields might need to be within a year of each other. Using validated date fields and conditional logic, we can control this kind of restriction. In the following example, the begin date and end date have to be within 366 days of each other.
*arrow represents conditional rule pointing from trigger to field to appear
**blue text represents validation
The formula above uses a built in DocuSign formula called DateDiff() to calculate the number of days between the begin date and the end date. Setting it to be greater than 366 will turn it into a binary field that will give a value of 1 when the dates are too far apart and a value of 0 when they are acceptable. Two impossible fields pop up when the the formula equals 1. The tooltips for these fields can ask that the dates be fixed accordingly. Making the dates within a year causes the impossible fields to disappear, allowing the signer to complete the form.