Kofax Getting Started with Ascent Xtrata Pro User Manual

Page 265

Advertising
background image

Chapter 5

246

Ascent Xtrata Pro User's Guide

Figure 5-21. Required Field Validation Checks

ActualDateCheck: Checks if the date has a valid date format and is not more

than 30 days in the past.

BirthDateCheck: Checks if the field is empty and if not, checks if the age is

over 18 years.

CustomerIDCheck1: This Standard validation method is used to check if the

extraction result is an 8-digit number and applies a check-digit algorithm.

CustomerIDCheck2: If you need to check the customer ID in a different way

from the standard method, you may implement a single field script validation
method.

CheckboxConsistency: If the check box for the person is checked, the birth

date and name field must be filled. If it is unchecked, the other fields must be
empty.

The following figure shows a multi-field script validation method. The left side lists
the fields that need to be validated. On the right side, the script wizard creates the
corresponding code. It contains the definitions for the defined fields.

By default, the “Strings” data type is applied, but you may change the data type by
selecting a different type from the corresponding drop-down list located on the
Script Sample panel.

To copy the code snippet to the script editor, click Select All and then select Copy.
Then click Show Script and select Edit | Copy from the context menu.

Advertising