Add a standard validation method
Use the procedure in this topic to add a standard validation method.
This method is typically used to restrict the number and type of characters accepted in a field.
For example, a credit card field has exactly 16 characters and the only characters allowed are the digits 0-9. If the data extracted for a field does not meet these criteria, it is presented to a Validation user so they can validate the field.
Additionally, you can restrict numeric characters from a name field, while allowing certain punctuation such as a hyphen for hyphenated names like "Rhys-Jones."
If there is a distinct pattern to the expected extracted data, the best practice is to use a Regular Expression validation method rather than listing all of the allowed characters.
If this validation method is in a sequence of validation methods, it is not fired if the previous validation method fails.
- Open the tab.
-
Select
Add.
The New Validation Method window is displayed.
- In the Name field, enter a validation method name.
-
Select the
Standard Validation from the
Type list and select
OK.
The standard validation properties window is displayed.
-
Configure the following settings:
Setting
Description
Check for minimum length
Specifies the minimum number of characters allowed for the result. If an extracted result is shorter than the minimum length, the field is marked as invalid. (Default: Cleared)
When this setting is selected, you can then specify the minimum number of allowed characters. (Default: 1)
Check for maximum length
Specifies the maximum number of characters allowed for the result. If the extracted result is longer than the maximum length, the field is marked as invalid. (Default: Cleared)
When this setting is selected, you can specify the maximum number of allowed characters. (Default: 10)
Restrict allowed character set
Specifies the only characters allowed in the result. If a field contains characters other than the restricted set, it is marked invalid and needs to be reviewed by a Validation user. (Default: Cleared)
When this setting is selected, you can enter the expected characters in the extraction result for this field. (Default: empty)
Define unallowed characters
Specifies characters that are not allowed in the result. If a result contains one of these characters, it is marked as invalid and needs to be reviewed by a Validation user. (Default: Cleared)
When this setting is selected, you can enter those characters that are not allowed in the extraction result for this field. (Default: empty)
Allow empty field
Available only if one of the other parameters in the Options group is selected. (Default: Cleared)
Allows an empty field to be valid. If this setting is not selected, and a field is empty, it is marked as invalid.
However, it is possible that even if this field is empty, it is marked as invalid. This happens if this standard validation method is in a sequence and the previous validation method in the sequence has failed.
-
Optional. Test your settings.
The single field validation method is designed to validate one field at a time. Different fields can have different validation methods, but each method needs to be tested separately.
Enter a test string into the Sample input text field and select
Validate.
A message is displayed below the input field telling you the entered text is valid, or explains why it is not valid.
-
Select
OK to save your standard validation method.
The standard validation is added to the list of validation methods.
- Optional. Repeat the above steps to add another standard validation method.
- Optional. Click OK to close the Project Settings window.
-
Optional. Add one or more of the following: