Field validation
A field validation checks one field of the document, such as the client name in the title block. The guided setup builds it in three steps on the template: pick the field, check the value it reads, and choose what it should contain. This page explains each step, the quick checks offered in the last step, and how to change a field validation later.
Starting the setup
On the document type page, click Field validation in the Items toolbar. The canvas editor opens full screen, with the three steps in the top bar and the step panel on the right. The document type needs a template PDF.
You can also choose the Field validation tool (key F) in the canvas editor.
Each step saves at once. Cancel in the first step removes what the setup made.
Step 1: Pick the field
Click a box of the title block, or drag over the text you want to check.

- Clicking a box picks the whole box. When the box holds a printed label above a value, such as "CLIENT" above "EXAMPLE CLIENT", NodePDF uses the label as the Title and removes it from the value. The panel then shows the value under Reads on this drawing, with "(Remove "CLIENT")" below it.
- Dragging draws the area yourself. Give it a title.
- Adjust the area by dragging its corners.
- Hover a text inside the field for options: Remove from value takes that text out of the value, Put back returns it, and Use as title makes it the field's title.
The Title names the field in the Items section, in reports and in the Excel export. It is required.
Click Next: check the value.
The text in a PDF is stored in pieces. NodePDF joins the pieces an area reads without spaces, so a field over two lines reads, for example, "EXAMPLE PROJECTBUILDING 1 – CAT A OFFICE & WORKSPACE". Keep this in mind when you type a value to compare with. See Extracts › Text rules.
Step 2: Check the value
This step shows the value exactly as the check will see it, with the chain of blocks that produce it.

If the value is not what you want to check, change it:
| Button | What it does |
|---|---|
| Remove text… | Removes one or more pieces of text, such as a label or a unit. You can also click a text of the field on the drawing. |
| Replace text… | Replaces a text with another. |
| Keep the first N characters | Keeps only the start of the value. |
| Keep the last N characters | Keeps only the end of the value. |
The changes are listed under Changes, in the order they apply. Use the arrows to change the order, and × to remove a change. The value above follows at once.
Click Yes, check this value.
Step 3: What should it contain?
Choose what the value must be. One click adds a check, set up from the value on the template.

Quick checks
| Choice | Adds | Set up as |
|---|---|---|
| Looks like … | A Pattern validator | A pattern learnt from the value. For example "1:200 @ A3" gives 1 digit + ":" + 3 digits + " @ A" + 1 digit. |
| A date | A Date validator | The date format of the value, or any common format when the value is not a date. |
| Exactly "…" | A Fixed value validator | The value itself. Upper and lower case are ignored. |
| One of a list… | A One of a list validator | Its editor opens so you can pick a project list. See Project values › Lists. |
| Found in a lookup table… | A Lookup validator | Its editor opens so you can pick the table and what to look up. See Project values › Lookup tables. |
| Same as the file name | A Matches filename validator | The PDF's file name, without ".pdf". |
| Not empty | A Not empty validator | Anything at all is filled in. |
| Something else… | Any type | The full list of Validator types; the editor opens. |
The choice most likely wanted is marked Suggested:
- A date when the value is a date;
- Not empty when the value is long (over 50 characters), because checking a long text word for word is rarely what you want;
- otherwise Looks like ….
You can add more than one check. Each one appears under Checks added, with its result on the template (Passes or Fails), Edit check (the pencil, which opens the full editor in the panel) and Remove check (×). Choices already added are marked "added".
Same as the file name ignores only a lower-case ".pdf". A file named "X.PDF" does not match the value "X".
Finishing
| Button | What it does |
|---|---|
| Done | Ends the setup and keeps the field validation. |
| Done, next field | Keeps the field validation and starts the next one, so you can click the next box straight away. |
| Back or Change the value | Goes back to step 2. |
Back on the document type page, the field validation is a row in the Items section with its result On template. If the template is a correct document, every check should pass on it.
Open Doctypes › Text document › Open canvas editor. In the side panel, click the pencil next to CLIENT to open its steps and see how the field was set up.
Changing a field validation later
- Edit on template, in the row's ⋯ menu or in the expanded row, opens the canvas editor at step 2, "Check the value". From there, Back returns to step 1 to adjust the area or title, and Yes, check this value goes on to the checks.
- In the canvas editor's side panel, the pencil next to a field (for example Edit CLIENT) does the same.
- On the document type page, expand the row and click a card to change a single block, or use + Add check to add another check. See Items › Expanding a row.
Many fields at once
To set up all the fields of a title block in one go, use Auto-extract title block. Each field you keep becomes a field validation, with the same quick checks one click away. See Auto-extract title block.