Skip to main content
The Check Sum rule compares the sum of several field values against a preset number or the value of another field. For example, if a document contains salary, bonus, and other payment fields plus a sum-total field, you can check whether the sum of the field values matches the total. An error message appears if they do not match.
For a Table field, the calculation depends on the level at which the rule is created. To compare the sum of all cells in a table column with a calculated or given number, create the rule in the Document Definition properties or the document section properties. To compare each cell of a column, or the sum of all cells across several columns, create the rule in the table properties or the table column properties. Follow the same guidance for rules that check the sum of values for fields with several instances.
1

Open the properties dialog box

Right-click the field and select Properties, or open the Document Definition properties (in the Document Definition editor, select Document Definition → Document Definition Properties).
2

Create a new rule

On the Rules tab, click New Rule. Select Check Sum and click OK.
3

Set the common rule options

Type a Name, set the severity, conditions for applying the rule, and any Tags as needed, and click Next. For the full list of common rule options, see Set up rules.
4

Add the fields to sum

Click Add to add the fields to the Summarize values of fields list.
5

Choose what to compare the sum with

Enable one of the following:
  • field compares the sum with the value of the resulting field. Click Select and choose the field.
  • number compares the sum with a number you enter.
6

Set the precision

Precision is the maximum permitted difference between the compared values. The rule is satisfied when the absolute difference is less than or equal to the precision value; otherwise an error is generated.
7

Set the remaining options

  • Select At least two non-empty objects required if at least two non-empty, non-zero summands must be used; otherwise the rule returns an error.
  • Select Confirm fields if rule check is successful to automatically confirm field values that pass the rule in the Document Definition editor. Otherwise, the Verification Operator confirms them manually.
8

Finish

Click Finish. The rule name appears on the Rules tab.