Horizon Support
Contents

Configure › Setting up

Building document templates

A document template is a Word file with placeholders in curly braces, such as {Recipient}. Horizon fills it with the values of a record; on the record it then appears under the Document button.

Where you maintain templates

Under Configuration → Rules and reporting → Documents, choose the kind of record the template is for, for example key receipts. The existing templates are listed there, and below them New template with a label and a Word file.

When you upload, Horizon checks every placeholder. If it does not know one, the finding names the field it probably means, and Replace in the file corrects the file for you. A new version is a draft until you release it with Release version.

Documents page with the list of placeholders on the right
All placeholders of the object type are on the right. One click copies one.

Which placeholders there are

The Placeholders column next to the template shows everything the check accepts, with sample values from a record:

  • Fields of the kind itself, such as {Recipient}.
  • Via a reference, the fields of a linked record, such as {Room.Building}.
  • Lists for tables: {#Keys} at the start and {/Keys} at the end of a table row repeat the row for each entry.
  • Figures and charts, Images and your organisation's Letterhead.

One click on a placeholder copies it; paste it into Word. The article Placeholders at a glance explains every notation.

For a field that may stay empty, put a mark with a plus sign into the same paragraph or table row, for example {+Remark} next to Remark: {Remark}. The mark itself prints nothing. If the field is empty, the paragraph or row is left out instead of standing there half empty.

Three ways to the first file

  • By hand: write the Word file and copy placeholders from the column into it.
  • Starter template: tick what the file should contain and get a Word file with one line per field and one table per list. It passes the upload check without findings; you add layout and wording in Word.
  • From own document: upload your existing sample contract, filled in with an example. The AI suggests which passages become placeholders; you confirm each one and take the result over as a draft. The sample file is not stored, only the finished template. This way appears only if AI is set up for your organisation.

Trial print

Trial print with the record fills a version with a real record, as Word or – if a PDF converter is set up – as PDF. A trial print is not filed.

Language versions

Under Language versions you attach the same file in another language to a template. Horizon uses the recipient's or the person's language, otherwise the organisation's, and falls back to the source version. In a language version, placeholders may carry the label in that language.

The starter template builds such a file for you: choose the language under Language of the file and upload the result as a language version, not as a new template.