Thanks to Sean Fiene for assistance.
Below is an example of how to perform Validation on specific controls based on their dates.
The goal: If start date is less than or equal to 11 days from today and\or If start data is more than 7 days before end date than prevent the form from being submitted.
Create a list with a “Start Date” and “End Date” column of data type “Date and time”.
Under the Formula Builder we choose “dateDiffDays” under the Runtime Functions tab and “Current Date” under the Common Tab. The “StartDate” is located under Named Controls tab and will vary depending on what column you are referencing in your list.
Select the “End Date” control and click “Add Rule”
Under the Rules window create a Validation Rule:
Under the Formula Builder for the Condition we choose to add the “varStartDate” from the Forms Variable Tab, and stated if the varStartDate is less than or equal to 11 days show the message.
We than state OR if the differences between the start date and end date controls is greater than or equal to 7 days to show the message.
The Results will be that this Validation rule will show the Message to the user when the hit save and these conditions are not met.
From here you can add additional validation or add additional validation rules and have the form show multiple messages specific to the failed validation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.