<ValidationRule> |
Event |
OnSubmit |
Controls when the validation is performed. Form data can be validated only when the form is submitted. |
Type |
Counting |
Indicates that the rule is a counting rule. |
Custom |
Indicates that the rule is a custom rule. |
Other |
Any rule with a Type other than Counting or Custom is considered a named rule. Named rules are predefined validations that you can use without defining them yourself. See Use a Named Rule. |
<Parameter> |
Name |
Object |
The data element in the WF_Entity object model to be counted. |
Condition |
Condition to be tested by the rule. For counting rules, the condition is used to filter the objects to be counted. |
Count |
For counting rules, indicates the number of entries that must exist for the form data to be considered valid. |
MinCount |
For counting rules, indicates the minimum number of entries that must exist for the form data to be considered valid. |
MaxCount |
For counting rules, indicates the maximum number of entries that must exist for the form data to be considered valid. |
ValidationFailureMessage |
The error message to be displayed. For counting rules, the message is displayed if the number of entries does not match the Count, exceeds the MaxCount, or is less than the MinCount. For custom rules, the message is displayed if the form data does not satisfy the Condition. |