DocView Capture by DocView.AI3 Nov 2026 10:44

Event scripts — document capture template

Event scripts run when something happens on the Index / Validate screen: a value changes, a field is checked, a document is completed. Browser scripts react instantly; server scripts can use lookups and other batches. Here a script capitalises the supplier, another warns about large totals and one keeps a document open without an order number above 1,000.

Try it

Create a Batch Setup from this template (Batch Setups › New Batch Setup, tab System features), and download its sample documents from the template's card (Download samples). Then: Import invoices.pdf and open a document in Index / Validate. Type a supplier in lower case and leave the field; clear the order number and complete the document. The scripts are on the Events tab.

At a glance

Region Global
Industry System features
Document types Invoice
Workflow Scan → OCR, separation & classification → Extraction & validation → Index / Validate → PDF generation & export
Straight-through processing No — every batch is checked on screen
Separation keywords at the top of a page
Output searchable PDF with XML data
Dates read as dd/MM/yyyy, d/M/yyyy, dd.MM.yyyy

Use this template

  1. Go to Batch Setups and choose New Batch Setup.
  2. Filter by Global or search for "Event scripts", select it and choose Next.
  3. Name the Batch Setup, choose the export folder and create it.
  4. Try it with a few of your own documents on the Test tab, adjust fields and rules, then publish it — see Test a Batch Setup and Versions and publishing.

Document types and fields

Invoice

Recognised by words such as "invoice", "subtotal", "total due".

Field Type Required Found by Checks
Invoice number Text Yes pattern in the text
Invoice date Date Yes label "Invoice date"
Order number Text label "Order No"
Supplier VAT number Text pattern in the text UK VAT number
Net amount Amount Yes label "Subtotal" at least 0
VAT Amount label "VAT" at least 0
Total Amount Yes label "Total due" at least 0
Supplier Text entered by the operator

Adapt it to your documents

All templates

Still stuck? support@docview.ai · +44 7886 864921

Made with DocView Capture by DocView.AI · www.docview.ai