Field validation
Field validation rules ensure that all document fields contain valid data. A validation rule uses a validation method to determine if the value entered is acceptable.
You can configure post-validation handling business rules to run wherever validation takes place, such as in a capture form, Transformation Server, and more. The document and list of fields being validated are handled based on the custom validation logic.
Rule execution is based on the following order, where each item must pass successfully:
-
Formatters associated with a field.
-
Rules associated with single fields.
-
A multi-field rule that a field is involved in. Example: A business rule that uses more than one field as input.
-
A multi-field validation rule cannot be associated directly with a field. These rules exist at the document level and are executed based on the order they are defined but can be reordered as necessary. The child document types inherit the multi-field validation rules defined in the parent document type.
-
When a business rule fails, every field associated with the rule is marked as invalid.
-
If a business rule calls a CaptureDocumentService SDK API method in the context of a Classification or Extraction activity, the API method only has access to document data prior to any updates made by the activity.
Add field validation rules for a document type
- Open the extraction group and select the document type for which to define a field validation rule.
- On the properties panel, click the Field validation tab.
-
To add a validation rule, perform the following steps:
-
Click
for
Validation rules.
The New validation rule dialog box is displayed.
- Enter the Name for the field validation rule, such as the Percentage rule.
-
On the
Type list, select one of the following
validation
methods and configure.
-
Business rule
You can map the system property "Sum" as input to the Number type table columns in business rules to perform the validation. This property calculates the sum total of all values in the column. If there are empty cells, they are counted as 0.
-
Date
-
Regular expression (default)
-
Standard
-
- Click Save.
-
Click
for
Validation rules.
- Configure post validation handling so that some of the configuration settings, such as "Always valid" are ignored for the field.
- Click Save.