Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt

Use this file to discover all available pages before exploring further.

Field provides access to a document field — its value, parameters, and structure. From a script, you can modify a field’s value or add suggested values that are shown to manual review operators.

Properties

Children

Type: Field[]Access: Read-only The child field array. Valid only for group fields.

DataType

Type: DataTypeAccess: Read-only The type of data in the field.

FieldType

Type: FieldTypeAccess: Read-only The type of field — for example, text, checkmark, or a table (containing cells that represent other fields).

FullName

Type: stringAccess: Read-only The full path to the field from the document root. Uses a forward slash (/) as a separator — for example, Vendor/Address/Street.

HasRegion

Type: boolAccess: Read-write true if the field has been found on the document (a region exists for it on the image). false means no corresponding region was found.

HasSuspiciousSymbols

Type: boolAccess: Read-only true if the field value contains characters recognized with low confidence.

Id

Type: stringAccess: Read-only The field identifier, unique within the document.

ImageRegions

Type: ImageRegionListAccess: Read-write An array of field regions on the image.

InstanceIndex

Type: intAccess: Read-only The index of the current instance of a repeating field. Set to -1 for non-repeating fields.

Instances

Type: Field[]Access: Read-only The array of all instances of this field (repeating fields only). Use Instances to access repeating field instances in a container obtained via GetField.

IsConfirmed

Type: boolAccess: Read-write true if the field has been verified by an operator or by a validation rule.

IsRepeatable

Type: boolAccess: Read-only true if the field is a repeating field.

IsSuspicious

Type: boolAccess: Read-only true if any characters in the field value were recognized with low confidence. Such fields should be reviewed manually or checked by a rule.

IsValid

Type: boolAccess: Read-only true if the recognized text in Text was successfully converted into a value of the specified type in Value.

IsVisible

Type: boolAccess: Read-only true if the field is visible on the document.

Name

Type: stringAccess: Read-only The field name, unique within its group.

Parent

Type: FieldAccess: Read-only The parent field.

ReadOnly

Type: boolAccess: Read-only true if the field is read-only and cannot be edited during manual review.

Symbols

Type: Symbol[]Access: Read-only An array of characters that form the original value of the field in text format.

Text

Type: stringAccess: Read-only The original value of the field in text format (generated when the document is recognized).

Value

Type: objectAccess: Read-write The value of the field in the specified format (generated when converting recognized text).
Unlike Text, the Value property stores the normalized value. If a script modifies Value to a different normalized value, Text is updated with the new normalized form. If Value is unchanged after the script runs, Text is not updated.

Methods

AddSuggestion

void AddSuggestion(string value);
Adds a suggested value for the field. During manual review, operators can pick from the list of suggested values.
Not supported on field groups or repeating field containers.

CopyTo

void CopyTo(Field field);
Copies Text, Value, ImageRegions, and Symbols from the argument field to the current field. Returns an error if the two fields have different data types.

GetChild

Field GetChild(string fieldName);
Returns the child field with the specified name. Use GetChild to access elements within a list — for example, different cells in the same row.
Pass the field name as a string literal, not a variable. The script preprocessor replaces the literal name with the field’s identifier before execution — variables aren’t processed.

Object model

Full JavaScript object reference for use in Advanced Script Rules.

Context

The Context global object — access the document, fields, and skill parameters from inside a rule.

FieldType

Enumeration of available field types and the data types each supports.

DataType

Enumeration of data types a field can contain (also includes AmountOfMoney for currency).