Word templates
A Word template lets you write a document once and get a finished PDF for each client without retyping anything. It suits whatever you already keep in Word: NDAs, service agreements, consent forms, offers.
Available when: your role has the Manage file templates permission
Every plan includes Word templates. How many templates of any type you can keep depends on your plan, see Plans and limits.
This page teaches one idea at a time, simplest first. You don’t need to read all of it: the first three sections are enough for your first document. The Word template reference is the look-up page for later. If your plan includes AI and the document already exists, AI can turn the file into a template for you, and you review the result.
How it works in one minute
Section titled “How it works in one minute”- You write the document in Word, as you always do, with your own letterhead and layout.
- Wherever a detail changes from client to client, you type a short code in place of it, such as
${company}. That code is called a marker. - You upload the Word file to Doxtly. It is now a template: a document with blanks to fill.
- Each time you need a document, something hands Doxtly the details, for example a form a client filled in. Doxtly puts each detail where its marker stands and gives you a PDF. Your Word file stays as it was, ready for the next client.
Here is a Word file with five markers, and the PDF Doxtly made from that same file:
Everything you did not touch stays exactly as you wrote it: the letterhead, the fonts, the name at the bottom.
What a marker is
Section titled “What a marker is”A marker is a blank with a name on it. You decide the name, and the name says which detail goes there. In ${company} the name is company, and the rest is a wrapper that tells Doxtly “this is a blank, not ordinary text”.
To type one, type a dollar sign $, an opening curly brace {, the name, and a closing curly brace }. On most keyboards those are Shift+4, Shift+[ and Shift+]. Type them straight into the text, in the place where the detail should appear.
The details Doxtly fills in are called the data. Data is a set of names, each with a value:
| Name | Value |
|---|---|
date |
5 November 2026 |
contact |
Erik Halden |
company |
Halden Logistics sp. z o.o. |
service |
a review of warehouse processes |
start_date |
16 November 2026 |
That is the whole trick: a marker ${company} asks for the value named company, and the name in the marker has to match the name in the data, letter for letter.
Doxtly’s app calls these names variables, so its Variables tab lists the names your template asks for. The data can come from three places:
- From a form, the usual way. Each field has a Data path, which is its name in the data, so a field with the data path
companyfills${company}. - From a workflow, an automatic chain of steps. It carries the form’s answers to the template, and can add values of its own, such as a row found in a spreadsheet.
- From your own system, through the API, which is how programs talk to Doxtly.
Your first template
Section titled “Your first template”You will end with the letter above as a PDF. It takes three things: the template, a form that collects the details, and a workflow that joins the two.
-
Open Word and start a blank document. Type this, and add a letterhead if you like. Word may underline the markers in red, which does no harm:
Warsaw, ${date}Dear ${contact},We confirm that ${company} has engaged Northbridge Advisory for ${service}.The work starts on ${start_date}.Anna Kowalska -
Save it as a Word document, with the
.docxending, for exampleEngagement letter.docx. -
In Doxtly, open Resources > File templates in the sidebar and press New template.
-
Enter
Engagement letteras the Template name, leave Template type on Word, and choose your file under Template file. Then press Create a template. Doxtly reads the file and takes you back to the list. A file that is not really a Word document is refused with a message, and nothing is saved.
A new Word template needs a name and a file. Metadata is optional. -
Click your template in the list and go to the Variables tab. It should list your five names. This is your first check: a name you don’t recognise is a typing mistake. To correct one, fix it in Word. Then, on the Template tab, press the pencil beside the file, choose the corrected file and press Save changes.

-
Make a form that collects the five details. Open Forms → Web forms, press New form, and name the form in the title at the top. Then, for each detail, click Text input on the Add tab at the left. In the Properties panel, give the field a Label, the question people see, and set its Data path to the name of the marker:
date,contact,company,serviceandstart_date. Turn on Required as well, because a field left blank doesn’t stop the document: it leaves a gap in the sentence. Press Create. -
Make a workflow, which tells Doxtly to fill the template each time the form is sent. Open Automation, press New workflow, and name it in the title at the top. From the Node palette add a Trigger, select it and choose your form under Trigger source. Starts on already says Form. Add a Generate document step and connect the two by dragging from the trigger’s output to the step. Select the step and choose
Engagement letterunder Document template. Turn on Save in application, so that the PDF is kept, and leave Output filename as it is. The Template variables box should say that all the variables are available. Press Create. The Quick start shows steps 6 and 7 with pictures. -
Open Forms → Web forms. In the row of your form, open the actions menu (the three dots) and choose Share, then press Open the page. Fill in the form with the values from the table above and press Submit.
-
Open Resources > File templates and switch to the Generated files tab. Your file is called
document.pdf, and its Template column saysEngagement letter. If the row is not there yet, wait a moment and refresh the page. Open the row’s actions menu and choose Download.
Open the PDF and read it. The one below has a letterhead, and yours has one only if you added it:

Each new submission of the form now makes a new letter. The rest of this page adds one idea at a time to what you just did.
A few things are good to know from the start:
- The result is always a PDF. If you protect it with a password, the PDF is what gets protected, and your
.docxstays as you uploaded it. - The page layout is yours. Margins, page size, columns, landscape pages, section breaks and different headers per section all print as the template sets them.
- The PDF is not made by Word. A font Doxtly does not have is replaced with a similar one, so a line can break in a slightly different place. When that happens the warning on the document names the fonts that were replaced; to keep a font exactly, embed it in the Word file (File > Options > Save > Embed fonts in the file). Check the first generated PDF, not only the template on your screen.
- Word check boxes, drop-down lists and text fields come out in the PDF as ordinary text and characters, so the finished document cannot be filled in or changed by the people who receive it.
- Page numbers stay Word’s job: use Insert → Page Number as usual. Doxtly’s own numbering, further down this page, is for clauses.
The one rule: format a marker as one piece
Section titled “The one rule: format a marker as one piece”A marker can be bold, coloured or large, and the value then prints the same way. The one thing to avoid is formatting only part of a marker. The examples here use ${client.name}, the client’s name. The dot in it is explained further down:
The first two lines did what you would expect. In the third, the bold is lost, because the value takes the look of the marker’s first character, the $, and that one is plain.
| You want | Do this |
|---|---|
| A bold client name | Select the whole of ${client.name} and press Bold. The value prints bold. |
| One word bold in a sentence | Keep the marker in one look, and bold the words next to it. |
| A bold clause number and a plain title | Bold the whole of ${#paragraph}, a clause number marker, and leave . DEFINITIONS plain. The number takes the look of its marker. |
| The client’s name in capitals | Set the whole marker in All caps. It still asks for client.name, and the name prints in capitals. |
| To paste a marker from elsewhere in Word | Paste as Keep Text Only, then format the whole marker. |
| To repair a marker that prints oddly | Delete it, type it again in one go, then format it as a whole. |
Why this happens
Section titled “Why this happens”You can skip this part: it only explains the rule above. Word does not keep your text as one long line. It stores it as a chain of small pieces, and every change of formatting starts a new piece. You cannot see the joins, not even with Word’s ¶ button. Make only name bold in ${client.name}, and the file holds two pieces: ${client. and name}.
Doxtly glues the pieces of a marker back together, as long as they sit in one paragraph, so the marker still works. Word also cuts text for reasons of its own, such as a spelling check or an edit made on a later day, and those cuts do no harm because both pieces look the same. A cut made by formatting is different: the pieces look different, and only the look of the first can survive. The words before and after the marker keep their own look. The reference says what this does to each kind of marker.
A few more writing rules
Section titled “A few more writing rules”- Keep a marker in one paragraph, and never press Enter inside it. A marker that wraps at the end of a line because the line is full is fine. A condition broken by Enter prints in the document as plain text, and the conditions around it stop working too.
- Leave spaces out of a marker.
${ client.name }names a value with spaces in it, and Doxtly refuses the file when you upload it, naming the marker. Spaces belong only in a default value. - Type markers rather than pasting them from a web page or a PDF. An invisible character that comes along becomes part of the name. A non-breaking space gets the file refused, like any space; another invisible character makes the error name a value that looks correct and still is not found.
- Mind the capitals:
${Client.Name}and${client.name}are two different values. - Stick to letters without accents, digits, underscores and dots in names. Conditions, checkboxes and codes, all described below, accept nothing else.
- Keep markers out of footnotes and endnotes, where they print as you typed them. Signature markers are the one exception.
Variables
Section titled “Variables”Your first template used plain names. Here is what else a marker that prints a value can do.
Grouping names with a dot
Section titled “Grouping names with a dot”When a document has many values, group them. A dot in a name means “inside”: client.name is the name inside the client, client.address.city is the city inside the client’s address. It works as deep as you like:
Client: ${client.name}Registered address: ${client.address.street}, ${client.address.city}Represented by: ${client.representative.name}, ${client.representative.role}In a form, you set the Data path of a field to exactly that, for example client.address.city.
Developers, and the Data structure window of a template, write the same data in a format called JSON. You will meet it further down this page, so here is how to read it. Curly braces are a group, and each line is a name and its value:
{ "client": { "name": "Halden Logistics sp. z o.o.", "address": { "street": "ul. Portowa 12", "city": "81-336 Gdynia" }, "representative": { "name": "Erik Halden", "role": "Managing Director" } }}Which names you can use depends on where the data comes from: Data and variables explains what each source gives you.
When a value may be missing
Section titled “When a value may be missing”By default, a value the document prints has to be in the data. If it is not, no document is made, and the error names what is missing:
Request data is missing required variables: client.vat_numberThat is deliberate: a contract with a hole in it is worse than no contract. When a value really is optional, say so in the template. After the name, type | (a vertical bar) and the text to print instead, which is called a default:
VAT number: ${client.vat_number|not registered}Purchase order: ${order.po_number|}Office: ${_metadata.office|Warszawa}Campaign: ${_params.campaign|direct}Everything between | and } is the default, spaces included. ${order.po_number|} has an empty default: it prints nothing when the value is missing. The default is used when the data does not have the value or has it as null, which means “nothing”. An empty text in the data counts as a value, so it prints as empty. A form field left blank is such an empty text: the document is made, with nothing in that place, so turn on Required for a field that must be filled in.
The last two lines above read two other sources. _metadata. is the template’s own values, and _params. is a link parameter, one of the values at the end of a web link. Link parameters are a good place for a default, because a link does not have to carry them.
Values Doxtly adds
Section titled “Values Doxtly adds”Every document can also print these three, which no data has to supply. Each line shows the marker, and to its right what it prints:
${_request.file_name} Mutual NDA - Halden Logistics.pdf${_request.template_type} word${_request.generated_at} 05.11.2026 14:05The time is in your organization’s time zone. These three do not appear on the Variables tab, because nobody has to supply them.
A document of a signing package can also print the package’s number: ${_package.number} gives UM/2026/0142, when its document type numbers packages. Outside a package there is no number, and the document stops like on any missing value, so a template used both ways prints it as ${_package.number|}, which leaves the place empty. See Where the number exists. Template metadata and link parameters are available as well, under _metadata. and _params.: see Metadata below and the reference.
Dates in the format you choose
Section titled “Dates in the format you choose”A date marker writes a date in the format you choose. Write date:, the value’s name, another colon and the format:
${date:agreement.start:dd.MM.yyyy} 01.04.2026${date:agreement.start:d MMMM yyyy} 1 April 2026${date:agreement.start:LLLL yyyy} April 2026${date:meeting.at:dd.MM.yyyy HH:mm} 01.04.2026 14:05${date:agreement.start} your organization's usual format${date:agreement.end:dd.MM.yyyy|—} — when the data has no end dateThe value is a date as forms and workflows send it, such as 2026-04-01 or 2026-04-01T14:05. The names of months and days are in your organization’s language, set in the organization’s settings: a Polish organization gets 1 kwietnia 2026. Without a format, the date prints as the language usually writes it, 01.04.2026 in Polish and 04/01/2026 in American English, with the time when the value has one. The letters of a format are the same as in a form’s date field: d the day, MM the month as a number, MMMM its name, yyyy the year, EEEE the day of the week, HH:mm the time; text in apostrophes, such as 'on' d MMMM, prints as it is. The full list is in the reference.
A date marker works in a table row, ${date:milestones.due:d MMMM yyyy}, where each row prints its own item’s date, and in a repeated section, ${date:due:d MMMM yyyy}. If the data has no date and the marker has no default after |, the document is not made. A value that is no date, such as next week, stops it too, and the error names the marker.
There are no filters
Section titled “There are no filters”Apart from dates, a Word template prints a value exactly as it receives it. It has no filters, the small commands other template formats use to reshape a value, so it cannot turn 12500 into 12,500.00. The | in a Word marker always means a default.
Prepare the value before it reaches the template: send it already formatted, or shape it in the workflow with expressions. Rows read from a spreadsheet come in two forms for this reason: use the display one in documents, because its dates and numbers are already written for people (${student.display.exam_date}). If you need to format inside the template, SVG templates, which use a template language called Twig, can do it.
Optional clauses
Section titled “Optional clauses”Most contracts have parts that only apply sometimes. You keep such a clause in the template and let the data decide whether it prints.
Type ${if:non_solicitation} on a line of its own above the clause and ${/if} on a line of its own below it. non_solicitation is a name you choose, and the data answers it with yes or no. In a form, that is a Checkbox (yes/no) with the data path non_solicitation, which sends true, meaning yes, when ticked and false, meaning no, when not.
Here is one template and the two documents it makes:
The marker lines themselves never print, and a hidden clause leaves no gap. What stands between ${if:…} and ${/if} is called a block.
Other things a condition can do
Section titled “Other things a condition can do”To print one text or another, add ${else} between them. You may repeat the name in the closing marker, as in ${/if:client.is_company}, to help you read, but you don’t have to:
${if:client.is_company}${client.name}, represented by ${client.representative}${else}${client.name}, an individual, ID number ${client.id_number}${/if}To ask the opposite, put ! in front of the name: ${if:!paid} prints what follows when paid is not true.
A condition can also sit inside a sentence, with no lines of its own:
The fee is ${if:vat_exempt}exempt from VAT${else}subject to VAT at ${vat_rate}%${/if}.With vat_rate set to 23, that prints The fee is subject to VAT at 23%. Blocks can sit inside blocks, and a block can also fill a table cell or sit in a header. A draft stamp is a common use: ${if:draft}DRAFT${/if} in the header.
What to keep in mind
Section titled “What to keep in mind”- If a condition’s value is missing, it counts as false and the document is still made. A value printed only inside a hidden block is not needed: in the VAT example
vat_rateis needed only when the client is not exempt. - A condition tests one value for “yes”, and cannot compare:
${if:total>10000}is not a condition, and prints as you typed it. Work the answer out before the template, in a form’s field or a workflow step, and pass it in ashigh_value. The exact list of what counts as false, including the textsnoandnie, is in the reference. - When a block inside a sentence is hidden, the text after
${/if}joins the text before${if:…}and takes its look. That only shows if the two differ, say a bold word before the block and plain text after it. Give both the same look, or put the block on lines of its own.
Lists: tables and repeated sections
Section titled “Lists: tables and repeated sections”Some details come in numbers you cannot know in advance: the milestones of a project, the dates of a course, the items delivered. Such a detail is a list, and each item of the list has the same named fields, like a table:
| name | deadline | fee |
|---|---|---|
| Discovery workshop | 30.11.2026 | 4,500.00 |
| Process review | 18.12.2026 | 9,800.00 |
| Final report | 29.01.2027 | 6,200.00 |
Here the list is called milestones, and its fields are name, deadline and fee. In a form, a list comes from a Dynamic fieldset, a group of fields the person can add again and again. In JSON it looks like this, with square brackets around the items:
{ "milestones": [ { "name": "Discovery workshop", "deadline": "30.11.2026", "fee": "4,500.00" }, { "name": "Process review", "deadline": "18.12.2026", "fee": "9,800.00" }, { "name": "Final report", "deadline": "29.01.2027", "fee": "6,200.00" } ]}A table row
Section titled “A table row”In Word, insert a table with a header row and one more row. In that second row, type one marker per cell, written as the list’s name, a dot and the field’s name. Doxtly repeats that row for every item:
You write one row, however long the list. Doxtly does not add anything up: the total under the table is a value of its own, sent with the data. The repeated row can hold more than the list’s fields. ${loop.index} in the No. column prints each row’s position, 1, 2, 3, which nobody sends: Doxtly counts the rows. ${loop.index0} counts from 0, and ${if:loop.last} … ${/if} keeps text in the last row only; the reference lists them all. A value of the whole document, like ${currency}, prints in every row. If a field is missing from some items, give it a default: ${milestones.note|-}.
A repeated section
Section titled “A repeated section”When each item needs paragraphs rather than a row, use a section. Type the list’s name as a marker on a line of its own, then the text to repeat, then the closing marker with a / on a line of its own. Inside the section, a marker names just the field, with no list name in front:
The list here is sessions, with two items. Inside the section, a plain name such as ${title} is the item’s field. When the item has no field of that name, Doxtly reads the whole document’s data instead, so a plain ${currency} prints the document’s currency in every copy. A name with a dot, like ${client.name}, reads the whole document’s data. The one exception is the list’s own name in front: inside the section, ${sessions.title} is the same as ${title}, as in the list’s table row. Write the plain name, as this manual does. If neither the item nor the document has the value, the document is not made, and the error names it with its list: sessions.currency.
A list inside each item
Section titled “A list inside each item”An item can hold a list of its own: the sections of an offer, each with its paragraphs. Put a second repeated section inside the first. Inside it, plain names are the inner item’s fields:
${sections}${number}. ${title}${paragraphs}- ${text}${/paragraphs}${/sections}{ "sections": [ { "number": "1", "title": "Scope", "paragraphs": [{ "text": "Workshops with the team" }, { "text": "A written report" }] }, { "number": "2", "title": "Price", "paragraphs": [{ "text": "A fixed fee of PLN 20,500" }] } ]}The document prints section 1 with its two paragraphs and section 2 with its one. A table row works inside a section too: in the section ${orders}, a table row with ${lines.product} and ${lines.quantity} repeats for each line of that order. Lists nest up to four levels. Inside an inner section, a plain name the inner item does not have is read from the outer item, then from the document: ${title} inside ${paragraphs} prints the section’s title.
A picture in each item
Section titled “A picture in each item”A picture marker inside a repeated section places the item’s own picture: ${photo:120:80} prints each product’s photo next to its name. In a table row, write the list’s name in front, as for any field: ${products.photo:40:40}. The picture is sent the same way as any picture.
A line for some items only
Section titled “A line for some items only”A condition inside a repeated section can test the item’s own field. Write the field’s plain name:
${items}${name}${if:paid} (paid)${/if}${/items}Only the items whose paid is true get “(paid)”. Everything a condition can do works here: ${else}, ! for the opposite, a whole paragraph on its own lines. When the item has no field of that name, the condition tests the document’s value, as it did before. A name with a dot, like ${if:client.vip}, tests the document. A value inside such a condition is needed only for the items where the condition holds.
A grid’s rows
Section titled “A grid’s rows”A grid from a form, a quiz or a survey is a list too: ${satisfaction._rows.label} and ${satisfaction._rows.answerLabel} in the cells of a table row give a row for each row of the grid, and a section between ${satisfaction._rows} and ${/satisfaction._rows} repeats with ${label} and ${answerLabel} inside. ${satisfaction} prints the whole answer as one line, Communication: Good; Price: Poor.
What to expect from lists
Section titled “What to expect from lists”- An empty list removes the row or the section. The table’s header row stays, though. To hide the whole table, wrap it in a block: an empty list counts as false, so
${if:milestones}before the table and${/if}after it does the job. - A list inside a group is named with its dots:
${order.items.name}. - Lists nest up to four levels, and one document repeats at most 5,000 items, counting every list and level. A document holds at most 200 pictures from the data. Past a limit, the document is not made, and the error names the list or the picture.
- Inside a repeated section, a condition, a checkbox, a QR code or a barcode with a plain name reads the item’s field first, like a value does.
- Every copy knows its position:
${loop.index}counts from 1 and${loop.index0}from 0, in a table row and in a section alike. In a list inside an item,${loop.index}is the inner list’s position, and${loop.parent.index}the outer one’s, so${loop.parent.index}.${loop.index}prints1.1,1.2,2.1. Outside a repeat,${loop.index}is an ordinary value the data must send. For numbers likea)or§ 3, use a number marker. - One list fills one table row and one repeated section. They may both appear in a document. If you need the same list in a third place, send it again under a second name.
- Lists repeat in the body only, not in headers and footers.
A list of plain values
Section titled “A list of plain values”Not every list has named fields. A multi-select question in a form answers with plain texts, like ["GDPR workshop", "Staff training"], and there is nothing to repeat for those. Print them with the list’s own name:
Courses booked: ${courses}The document reads Courses booked: GDPR workshop, Staff training. Don’t wrap such a list in a block ${courses} … ${/courses}: the block is removed with the text in it, and a marker inside it stops the document.
Tick boxes
Section titled “Tick boxes”A tick box in the document suits forms printed for the file, like a consent sheet. Type ${checkbox: and the name of a yes-or-no value, then }, where the box should stand. Add :cross if you want a cross instead of a tick:
In this document the data said yes to consents.newsletter and consents.photos, and no to consents.phone. The box prints ☑ when ticked, or ☒ with :cross, and ☐ otherwise. A missing value leaves it empty. The box is a character, so it takes the size and colour of the marker. A font without the symbol borrows it from another, as the reference shows.
Pictures
Section titled “Pictures”To place a picture, such as a client’s logo, type a marker with the size after the name, separated by colons. ${client.logo:4cm:2cm} means “the picture named client.logo, no wider than 4 cm and no higher than 2 cm”. The picture keeps its proportions and fits inside that box:
The size can also be in pixels: ${witness_signature:200:80}.
A signature drawn in a form’s signature field, a sketch from a form’s drawing field and a picture uploaded in a form all work when the document is made by a workflow. Through the API, send the picture as a data URI (a picture written out as text, starting data:image/png;base64,). PNG, JPEG, GIF and BMP are accepted, up to 10 MB each. A link to a picture is not fetched: it stays a piece of text.
QR codes and barcodes
Section titled “QR codes and barcodes”For a code, the marker says what to encode, and Doxtly draws it. You send the text, not a picture. The number at the end of a QR marker is its size in pixels. In a barcode marker come the type, the width of the thinnest bar and the height:
Here certificate.verify_url held https://northbridge.example/verify/NB-2026-118, and contract.number held NB/2026/118. Codes work in the body, headers and footers. The reference has every size option and all barcode types.
Clause numbers that renumber themselves
Section titled “Clause numbers that renumber themselves”In a template with optional clauses, typed numbers go wrong the moment a clause disappears: § 5 becomes § 4, and “see § 5” now points at the wrong place. So instead of typing a number, type a marker that counts:
| Type this | To print | Use it for |
|---|---|---|
${#paragraph} |
§ 1., § 2. |
The main clauses |
${#point} |
1., 2. |
The points of a clause. They start from 1 in each new clause. |
${#subpoint} |
a), b) |
The subpoints of a point. They start from a) in each new point. |
To mention a clause elsewhere, give it a label after a colon, like ${#paragraph:fees}, and write ${%fees:bare} where its number should appear. bare means the number alone, so you type the § yourself. Here is a template in which CONFIDENTIALITY is an optional clause, and what comes out each way. Watch the number of FEES, and the sentence under TERMINATION that mentions it:
Only the clauses that made it into the document are counted, and the reference followed its clause from § 3 to § 2.
The full stop after a marker can stay: ${#paragraph}. FEES prints § 3. FEES, with one full stop. Don’t type one after ${#subpoint}, as a) has none of its own and it would stay.
Naming a clause and pointing at it
Section titled “Naming a clause and pointing at it”${#paragraph:fees} numbers the clause and names it fees, and ${%fees} prints its number wherever you need it. A reference can come before its clause, and it can also stand in a header or footer. There are three ways to print it:
| You write | The document prints |
|---|---|
see ${%fees}. |
see § 3. |
under § ${%fees:bare}, the Client |
under § 3, the Client |
as set out in ${%fee_amount:full} |
as set out in § 3 ust. 1 |
In the last row, fee_amount is the label of point 1 of § 3. ${%fees} prints the number as the clause shows it, full stop included, so it reads best at the end of a sentence. In the middle of one, use :bare, which gives the number alone. :full names every level, and uses the Polish legal words ust., pkt and lit., so in an English contract build the phrase yourself: point ${%fee_amount:bare} of § ${%fees:bare}.
Pointing at an optional clause
Section titled “Pointing at an optional clause”If a label sits inside a hidden block, there is nothing to point at, and the reference prints the label in square brackets, such as [confidentiality]. Put a sentence like that inside a block with the same condition, and it goes away together with its clause:
${if:confidential}${#point}. A breach of § ${%confidentiality:bare} entitles the other party to terminate.${/if}Signature places
Section titled “Signature places”If a document goes for signing, a signature marker says who signs and where. It looks different from the others: square brackets, capitals, no dollar sign. Type it directly above the signature line:
A signature marker is not filled in when the PDF is made, so seeing it in the PDF is normal. When the document goes for signing, each party’s signature lands at its marker, and the marker’s text is painted out. Nobody picks signers by hand: the markers on the document’s pages decide who signs it. A party whose marker sits in a hidden block takes no part in that document.
Marker names start with a capital letter and go on with capitals, digits or underscores, such as CLIENT or TENANT_2. [SIGNATURE:client] is ordinary text, unless Word’s All caps or Small caps prints it in capitals. Keep the marker on one line with room around it, and do not stretch its letter spacing: a marker spaced apart or wrapped across lines cannot be found on the page. The reference has the measurements.
Bold or a colour on part of a signature marker does no harm, because the marker is read from the printed page rather than filled in. Hidden text, All caps on part of it and tracked changes do change what the page prints, so keep it plain.
Where a party should initial rather than sign, type [IN:CLIENT]: the same rules for the name, and a small stamp of the party’s initials in its place. A party named only by initials still counts as signing. Put the marker in the footer, and the party initials every page.
When you choose the file, the template form prints it once with its markers unfilled and checks that each signature and initials marker has room. If one does not, a warning such as One signature or initials marker has too little room names it and its page, for example Page 2: [SIGNATURE:CLIENT], with advice on making room. It is only a warning: you can still save, and the values a real document fills in can move the layout a little.
The Parties tab of the template lists every party your markers name, so you can check them right after uploading. A template with no markers shows No signing parties, which is fine for a document nobody signs.

Headers and footers
Section titled “Headers and footers”Variables, pictures, conditional blocks, checkboxes, QR codes, barcodes and references to numbered clauses all work in headers and footers. Two things do not: repeating a list, and counting. A header is stored once however many pages it prints on, so ${#paragraph} there would belong to no place in the text, and it stays as you typed it. A reference does work: Agreement no. ${agreement.number}, terms in ${%terms}.
Word’s section breaks are safe too, even right at a ${/if} or a closing list marker. If a block with a section inside it goes away, the section goes with it, and the text before it keeps its columns and orientation. Avoid a section break inside a condition written within one paragraph.
Start something on a new page
Section titled “Start something on a new page”A contract often goes on after a list whose length you cannot know: a table of offices, then a signature, then the next part, say a Payment agreement. You want that part to open at the top of a page however many rows come before it, and you never want an empty page in between, even when the list happens to end at the very bottom of a page.
Word has a setting for exactly this. It belongs to a line of text rather than to a place between lines, so turn it on for the first line of what should open the new page:
-
Click anywhere in that line, for example the heading Payment agreement.
-
Right-click it and choose Paragraph. You can also use the small arrow in the corner of the Paragraph group on the Home tab.
-
On the Line and Page Breaks tab, under Pagination, tick Page break before, then select OK.
That line now always opens a page. When what comes before it ends at the very bottom of a page, the line is already at the top of the next one, and no extra page appears. If every heading of a kind should do this, turn the setting on in that heading’s style instead, and you only set it once.
Keep a signature with the text before it
Section titled “Keep a signature with the text before it”The same tab keeps lines together across a page break, which helps a signature that follows a list. Without it, the list can fill the page so that the word Signature stays at the bottom and the signature line lands alone on the next page.
Tick Keep with next on the line before the signature line, and those two lines stay on one page. Keep lines together stops a single paragraph from being split over two pages.
Page breaks around lists and conditions
Section titled “Page breaks around lists and conditions”Where you put the setting decides what repeats and what disappears with a block:
| Where the setting is | What the document does |
|---|---|
| The first line after a list | That line always opens a new page, however long the list is, even when the list is empty. |
| A line inside a repeated section | Every item starts a new page. That suits one certificate per item. For a list of offices, leave it off and set it on the line after the list. |
A line that holds only the opening marker of a list, ${offices} |
The list starts on a new page. The items after the first one follow on, as they would without the setting. |
A line that holds only ${if:…} or ${else}, or the first line inside the block |
The block starts on a new page. If the block does not print, its page break goes with it. |
A line that holds only a closing marker, ${/if} or ${/offices} |
What comes after the block opens a new page, whatever the block printed. |
| A cell of a repeated table row | No effect on the PDF. To start something after the table, set it on the first line after the table. |
A line whose whole text sits inside a condition and comes out empty does not open a page. Text on that line after the condition keeps the setting.
What to avoid
Section titled “What to avoid”- A page break typed with Ctrl+Enter on a line of its own. It works when the text before it stops in the middle of a page. When that text ends at the very bottom, the break’s own line moves to the next page and the page after it is new, so Word shows an empty page between them. The PDFs Doxtly makes leave that page out, but your template then looks different in Word from what it prints, so use Page break before instead.
- Empty lines to push text down. An empty line left before the line with Page break before can land alone on a page in Word. Doxtly’s PDFs leave it out too, but delete such lines and let the setting do the work.
- A section break of the kind Next Page, used only to start a page. A section break is for what changes from one part to the next: headers, margins, orientation. Page break before does the job with nothing else to keep in step.
A complete example
Section titled “A complete example”Here is a service agreement that uses most of the above, shortened for reading. The line in square brackets stands for a real Word table:
SERVICE AGREEMENT No. ${agreement.number}
made on ${agreement.date} betweenNorthbridge Advisory sp. z o.o. ("Northbridge") and${client.name}, ${client.address} ("the Client").${if:client.po_number}Client's purchase order: ${client.po_number}${/if}
${#paragraph:scope}. SCOPE${#point}. Northbridge shall deliver: ${agreement.subject}.${#point}. The work is split into these milestones:
[table: one row of ${milestones.name}, ${milestones.deadline}, ${milestones.fee}]
${#paragraph:fees}. FEES${#point}. For the work in § ${%scope:bare} the Client shall pay ${agreement.total}.${#point}. The fee is ${if:vat_exempt}exempt from VAT${else}subject to VAT at ${vat_rate}%${/if}.
${if:confidential}${#paragraph:secrecy}. CONFIDENTIALITY${#point}. Each party shall keep the other's information secret for ${confidentiality_years} years.${/if}
${#paragraph}. FINAL PROVISIONS${#point}. Changes to this Agreement must be made in writing.${if:confidential}${#point}. The duties in § ${%secrecy:bare} survive the end of this Agreement.${/if}
FOR NORTHBRIDGE ADVISORY SP. Z O.O. FOR ${client.name}
[SIGNATURE:NORTHBRIDGE] [SIGNATURE:CLIENT]______________________________ ______________________________And here is the data sent to it:
{ "agreement": { "number": "NB/2026/118", "date": "5 November 2026", "subject": "a review of warehouse processes", "total": "PLN 20,500.00" }, "client": { "name": "Halden Logistics sp. z o.o.", "address": "ul. Portowa 12, 81-336 Gdynia" }, "milestones": [ { "name": "Discovery workshop", "deadline": "30.11.2026", "fee": "4,500.00" }, { "name": "Process review", "deadline": "18.12.2026", "fee": "9,800.00" }, { "name": "Final report", "deadline": "29.01.2027", "fee": "6,200.00" } ], "vat_exempt": false, "vat_rate": 23, "confidential": false}This is the page Doxtly makes from the two:

Notice what this data leaves out, and why it still works. There is no client.po_number, so that line goes. confidential is false, so § 3 is FINAL PROVISIONS, and confidentiality_years is not needed.
When something goes wrong
Section titled “When something goes wrong”There are three kinds of trouble: the file is refused, no document comes out, or a document comes out looking wrong.
The file is refused. A marker opened with ${ must be closed with } in the same paragraph. When it is not, for example ${fullAddress) typed with a parenthesis, Doxtly refuses the file when you upload it, and the message names the marker as Word shows it. Correct it in Word and upload the file again. Until then, nothing after that marker could be read reliably: the section it stands in would lose its end.
No document. Open Resources > File templates → Generated files. A row marked Failed tells you that it failed, not why. For a workflow, open the run on Executions and read the failed step. Through the API, the reason is in the error response. Nearly always the reason reads like this:
Request data is missing required variables: client.nmaeThat means the template asks for a name the data does not have. Compare it with the Variables tab and the form’s Data path, letter by letter. Here the marker has a typing mistake: nmae. Correct the marker in Word and upload the file again on the Template tab, or send the value, or give the marker a default.
A wrong-looking document. A marker printed as it was typed is your clue, because whatever Doxtly could not fill in stays visible:
| What you see in the PDF | What it means | What to do |
|---|---|---|
${if:…} or ${/if} |
The block’s markers do not pair up, or one is broken by Enter | Count the openings and closings, and retype the broken one |
${client} |
The name is a group of values, not one value | Name a field of it: ${client.name} |
${milestones.name} |
The marker is outside the list’s table row | Put it in the one table row of the list |
[fees] in square brackets |
The label is misspelt, or its clause is hidden | Correct it, or put the sentence in the same block |
[SIGNATURE:CLIENT] |
Nothing is wrong: this marker stays until the document is signed | Send the document for signing |
| A value in the wrong font or colour | Part of the marker was formatted differently | Retype it and format it as one piece |
When a marker misbehaves and you can’t see why, delete it and type it again in one go. That removes hidden joins and invisible characters at once. The reference lists every symptom.
Putting the template to work
Section titled “Putting the template to work”A template does nothing until something asks it for a document:
| You want | Use |
|---|---|
| A PDF after a form, for instance a certificate once a course is booked | A workflow with a Generate document step. Its Template variables box tells you whether the run supplies everything the template prints. |
| A contract sent for signature | A workflow with a Create documents step. The parties come from the template’s signature markers. |
| A PDF from your own system | The API, with the template’s identifier from Copy ID. |
Everything generated is listed under Generated files.
Managing the template
Section titled “Managing the template”A Word template has a page with four tabs: Template, Variables, Parties and Information. The header shows its type and version, and its actions menu holds Download template file, Copy ID, Data structure and Delete. Without the Manage file templates permission there is no Delete, and the Template tab only shows the file and the metadata. Read Deleting a template before you use that option: the documents made from the template go with it.

Basic information and file
Section titled “Basic information and file”| Field | What it does |
|---|---|
| Template name | How you find the template later. Required, up to 128 characters. |
| Template type | Word for a .docx. It is fixed once the template exists, and locked as soon as a file is chosen. A type your plan does not include is greyed out with a note to upgrade. |
| Where the template file comes from | From computer uploads a file. From cloud follows a file in your Google Drive, OneDrive, SharePoint, Dropbox or Box: see Cloud templates. |
| Template file | A .docx of up to 10 MB. The older .doc format is refused, and so is a damaged file or one with a marker that is not closed. A Google Doc from a connected drive works too, see Templates from cloud files. |
Once you reach your plan’s limit, New template stops you with a note to upgrade: see Plans and limits.
To change a template, choose a new file on the Template tab and press Save changes. The version goes up by one, and the variables are read again from the new file. Changing only the name or metadata keeps the version. If the new file is damaged it is refused, and the template, its name and its file stay as they were.
Metadata: the template’s own values
Section titled “Metadata: the template’s own values”Metadata is a small set of values that belong to the template rather than to any one document. It is a good home for what is fixed but may change one day: the signatory’s name, a policy version, the office address. You change it once in the form, with no need to edit the .docx.
Press the + button (Add field), then give it a Key, a Type (Text, Number or Object, which holds further fields) and a Value. In the document it is read under _metadata.:
Policy version: ${_metadata.policy_version}Signed for Northbridge by ${_metadata.signatory.name}, ${_metadata.signatory.role}${if:_metadata.show_footer_note}This document was prepared under our terms of engagement.${/if}
A workflow run can carry metadata of its own. The two are merged, and the template’s value wins where both name the same thing. A key cannot be empty, cannot start or end with a space and cannot contain a dot or a control character such as a line break. A top-level key cannot start with _, and two fields at one level cannot share a key. A _metadata value the document prints is required like any other value, unless you give it a default.
Checking what Doxtly found
Section titled “Checking what Doxtly found”The Variables tab lists every value the template uses, in the body, the headers and the footers, including those a hidden block may never need. It is the quickest proofreading tool you have: a misspelt marker stands out at once. A template with no markers shows No variables found.

Data structure, on that tab and in the menu, shows the shape of the data the template wants, with each key’s type. A ? after a key marks it optional, such as a condition’s value, a value with a default or a value printed only inside a block, which the document needs only while the block shows. Metadata is left out, because the template brings its own. A list that fills a table row appears as an object with the row’s fields, so send a list of such objects. Copy structure and Download file give you the same thing as JSON, ready to hand to whoever connects your systems. The Fields tab shows the same data as a list, in the order the template first uses each value: every list with its items’ fields under it, and every value with its kind (Text, List, Picture, Code content or Yes or no), the conditions it prints under and its default.

With the template open, you can also ask Doxie, the AI assistant in Doxtly, to read it for you. She lists every value the document needs and says which markers are missing and how to write them, such as ${client.name|Unknown}. She does not edit a Word file: you add the markers in Word and upload the file again. To have markers put into a copy for you, see Turn a Word file into a template.
The Information tab has two parts. Details gives the Identifier, which the API and your developers need, and the dates Created, Updated and Last used. Usage statistics counts Total generated files, Successful and Failed, with the Success rate. A template that keeps failing usually lacks a value in its data: the reference lists what each error means, and Generated files shows the failed attempts.
Before you go live
Section titled “Before you go live”- Read the Variables tab for typos, and the Parties tab for the right signers.
- Generate one document with every condition true and one with every condition false. Open both PDFs.
- Try an empty list, if a table can be empty.
- Check that every reference prints a number, and none prints
[a_label]. - Look for markers printed as text in the PDF. When something goes wrong says what they mean.




















