Formatting matches – Kofax INDICIUS 6.0 User Manual

Page 63

Advertising
background image

Configuring Recognition

Getting Started Guide (Free-Form)

57

Though some areas within the script may need editing in order to implement
custom validations, the InitialiseSearchOptions function should not be
edited.

Formatting Matches

Matches can be formatted prior to being validated (optional) and returned in the
match collection.

In order to format matches a single script function is required:

MatchValue_Format

The function takes the search name (for example, “Date”) and the match value as
arguments. It then returns a formatted or a blank value. The format function is run
prior to the validate function. This function is run by all the searches if the
SearchOptions property Run Format Script is set. Within the function, the format
applied depends on the search name.

X

To insert the format function template

1

Select the Script tab (the script must be visible to apply formatting rules).

2

Click the

(Insert Script Function) button on the toolbar to display a

drop down list.

3

Select the “Insert Format Match Function” option.

A function will be inserted in template form that can be edited to reformat
data. The template includes a “Select Case” structure that runs certain parts
of the script depending on the search name. This is because the same
function is used for each search. By default the template will not reformat
any values.

Advertising