For some types of forms, two sets of dates can have restrictions. On a few forms that I have come acrossFor example, two date fields are supposed might need to be within a year of each other. Using some of the logic from Example 5 and 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.The first
*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. The second formula checks whether or not the number of days calculated is greater than 366. If it is, two fields pop up just like in Example 5 that are impossible to fill outSetting 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 again, allowing a user the signer to complete the form.