Teaching Docuflair new forms
With form recognition Docuflair recognises particular document types automatically — an invoice or a delivery note, for example. To make that possible you teach it a sample document. During processing Docuflair compares incoming documents with the samples it has learnt, and can then assign them correctly and extract data from them automatically.
Permissions required
To access this function you need the following permissions:
- Show forms (
AdminUI_WorkflowManagement_ListForms) - Create forms (
AdminUI_WorkflowManagement_CreateForm) - Edit forms (
AdminUI_WorkflowManagement_EditForm) - Delete forms (
AdminUI_WorkflowManagement_DeleteForm)
You grant permissions through groups — see permissions – overview.
The list of forms
Section titled “The list of forms”You teach new form types through the menu navigation under Flow > Forms. The number of forms is not limited in Docuflair. Note, though, that forms which look similar can lead to wrong results, and that every form type increases the processing time needed slightly.

The list shows every form taught, with the following columns:
| Column | Description |
|---|---|
| Preview | A thumbnail of the sample document |
| Name | The name of the form |
| Description | An optional description |
| Conditions | The number of conditions defined (marked in colour) |
| Zones | The number of content zones (with an anchor indicator) |
| Changed | The timestamp of the last change |
| Created | The time of creation |
Click Create form to teach a new form. Forms that already exist can be edited or deleted through the commands in the right-hand column.

The form editor
Section titled “The form editor”The first step in creating a new form is loading a template. Select a sample document scanned earlier and upload it by clicking the folder icon at the top left.

Once the document is loaded and a preview is shown, the form editor is available. The editor consists of the following areas:
- A left-hand sidebar with two tabs: Conditions and Zones
- The central preview of the sample document with interactive zone overlays
- An upper toolbar with Save, Open and the view mode (fit the page, the width or the height)

Zone types and colour coding
Section titled “Zone types and colour coding”You position zones on the sample document by drag and drop and adjust their size. The position is stored in millimetres. Docuflair distinguishes between conditions (for recognising the form) and content zones (for extracting data). Each zone type is marked by colour in the editor:
| Zone type | Colour | Description |
|---|---|---|
| Anchor point | ⚫ Black (#333333) | The reference point for positioning. Only one is possible per form. |
| Condition: barcode | 🔴 Red (#dc3545) | A barcode search for recognising the form. The document is only recognised as this form if the barcode is found. |
| Condition: text | 🟠 Orange (#fd7e14) | A text search for recognising the form. The document is only recognised if the text is found. |
| Content: barcode | 🔵 Blue (#007bff) | A barcode zone for reading data out (an article number or a consignment number, for example). |
| Content: text | 🟢 Green (#28a745) | A text zone for reading data out by OCR (an invoice number or a date, for example). |

Creating and editing a zone
Section titled “Creating and editing a zone”Clicking the barcode icon draws a new barcode zone; clicking the text icon draws a new text zone (OCR). The following fields are available when a zone is created or edited:
| Field | Description |
|---|---|
| Variable name | A unique name for the variable (letters, digits and underscores only). |
| Search type | The kind of search: anchor point, barcode / QR code or text. |
| Barcode type | With a barcode search: the choice of barcode type (Code39, QR code or all 1D barcodes, for example). Only visible with the search type barcode. |
| Content validation | The validation method: exact text, text ignoring case or a regular expression. Only visible on conditions. |
| Search content | The text or barcode content to be searched for. |
| Tolerance | The number of deviations permitted in the search (fuzzy matching). |
Access through variables
Section titled “Access through variables”You reach the values recognised in a form in the workflow output through their combined name. The format is:
formname.variablename
If you have created a form named invoice, for instance, and defined a zone within it with the variable name invoicenumber, you use the value recognised through invoice.invoicenumber in the output.