Appearance
Letter templates
Letter templates are Word documents with placeholders such as {{case.reference}} where details go. Caseworkers make a letter from a case, filled in, and it is saved with the case's documents. Actions and rules can make them too. Admin → Letter templates lists them.
Adding a template
- Choose Add a template.
- Name: what caseworkers choose, such as "Acknowledgement letter".
- Which kinds of case is it for? Tick case types, or leave them all unticked for any kind of case. Placeholders for details, roles, time limits and key dates are checked against the case types ticked.
- What does it ask for when it is used? Optional questions for things a case does not hold, such as the paragraph explaining a decision. Each is used in the file as
{{input.<key>}}, and is:- Words, filled in where the placeholder is, on one line or several
- Yes or no, often used to include a section or not
- Choose one from a list, with the answers to choose from, one on each line
- Choose Save and continue, then upload the Word file (a
.docx, smaller than 25MB).
Every placeholder in the file is checked when it is uploaded, and again when the template's details change, so a typo is found by you, not in a sent letter. The page lists what the file uses.
Writing the Word file
Type placeholders into the document, braces and all, where the details should go. Placeholders you can use lists them, for any case or for a chosen case type, with what each becomes. See Placeholders.
Placeholders keep the formatting of the text they are in, and are filled in headers, footers, footnotes and endnotes too. Word sometimes splits text into pieces as you edit; that does not matter.
Sections that appear only sometimes
To include part of a letter only sometimes, put {{#if …}} on a line of its own before it and {{/if}} on a line of its own after it. Add {{else}} on its own line between them for what to show otherwise. {{#unless …}} is the opposite of {{#if …}}.
text
{{#if input.recharged}}
Our time on this matter is recharged to your department at the rates below.
{{else}}
Our time on this matter is not recharged.
{{/if}}- A section is kept when its placeholder has a value that is not "No".
- Or compare:
{{#if field.outcome = "referred"}}matches the stored value or the text shown. Straight and curly quotes both work, since Word curls them as you type. - Sections can contain paragraphs and tables, can be nested, and work in table cells, headers and footers.
- A section must start and end in the same place. Mismatched markers are refused when the file is uploaded, with the reason.
Markers work on whole paragraphs only, not within a sentence.
Changing a template
Change its details and choose Save details. Download it to change it, edit it in Word, and upload it again with Replace it with a new Word file.
Retiring a template
Retire this template keeps it, but no longer offers it on cases. Bring it back undoes it. Templates are never deleted. An action that names a retired template is refused when taken, rather than leaving the letter out.
Keys
Each template has a permanent key, such as client-care-letter, made from its name or given by a pack. Case types name the letters their actions and rules make by key, so a pack's case types can name its own templates.
Templates from packs
Packs bring letters, such as the Legal pack's client care letter. Built-in pack letters are plain Word documents you can download, restyle in your own house style and upload again. Upgrades compare the file, name, description, case types and questions, and ask you to choose where both you and the pack changed something. See Packs.