8.0

© 2009 ABBYY. All rights reserved.
32
Figure 15. The Rules tab of the Properties dialog box
Let us analyze a sample rule. We will describe the fill-in date of the questionnaire as the merging of the Day,
Month, and Year fields. To do this, perform the following:
1. Delete the region of the date field on the form image but do not delete the field itself. To do this, select
Delete Region on the context menu of the Fill-in date field. The marking will be removed from the image, but
the field itself will remain in the document and will be marked with a red asterisk.
2. Create the Day, Month, and Year fields.
3. Specify the properties of these fields. On the General tab, do not select the Export field value option because
we will export only the entire date (make sure that the Export field value option IS selected for the Fill in date
field).
4. On the Data Type tab, specify the data type for each of the fields. You must select the Number data type, and
the integer format. In addition, specify constraints for each of the fields by clicking Edit in the Validation area:
- Day: from 1 to 31,
- Month: from 1 to 12,
- Year: depending on the period in which the questionnaire is filled out, for example from 2000 to 2020.
5. On the Recognition and Verification tabs, specify properties similar to those that we specified for the Fill-in
date field.
6. Open the Properties dialog box of the Fill-in date field and go to the Rules tab to start creating a rule.
7. Click New Rule… Select the Merge Fields rule type.
8. Assign a name to the group, for example, Merge Fields – Fill-in date. Select Error to assign the Error status to
the rule. The error will occur if a field participating in the rule has not been detected. Click Next.