Print templates

Turn a lead into a filled-in Word, Excel or PDF document, such as a quote or profile sheet, from a template you design yourself.

In plain words: A print template is an ordinary Word or Excel file with placeholders where a lead's details should go. When someone prints a lead, Lead fills the placeholders with that lead's data and hands over the finished document as Word, Excel or PDF. Use it for quotes, call sheets, contracts or a one-page profile of a lead. New to the words? See Lead basics.

Where to find it: To set up templates, open the lead service, click β‹― (Service actions) > Service settings > Views & layouts > Print templates. To print, open a lead > β‹― > Print. Who can use it: Service managers add and change templates. Anyone who can see a lead can print it. Values a person is not allowed to see print blank, so a printout never shows more than the lead screen does.

Add your first template

  1. In the lead service, click β‹― (Service actions), then Service settings.

  2. In the list on the left, under Views & layouts, click Print templates.

  3. Click Word starter or Excel starter. A file downloads. It already holds this service's fields, laid out as a simple table.

  4. Open the file in Word or Excel. Move things around, add your logo and wording, delete what you do not need.

  5. Need another field? Scroll to Available variables, click the one you want to copy it, and paste it into the file.

  6. Back on the Print templates page, drop the file on the box that says "Drop a .docx or .xlsx here, or click to choose".

  7. Lead checks the file before it saves it. You see "Template added".

The template now appears in the list, and Print shows up in the β‹― menu of every lead in the service.

Tip: A starter file works as it is. Print one lead from it before you edit anything, so you know what a correct result looks like.

Service settings on Print templates, with the Word starter and Excel starter buttons

A service can hold up to 30 templates, and each file can be up to 5 MB. Only .docx and .xlsx files are accepted.

Write variables

A variable is a placeholder written between ${ and }. For example, ${email} prints the lead's email. Copy variables from the Available variables list instead of typing them, because a variable must match exactly. You can search the list with the box above it.

You want

Write

A field

${email}, ${company}, or the code of a custom field such as ${budget}

Your workspace name

${system_name}. Note that ${company} is the lead's company.

Owner or salesperson details

${owner_name}, ${owner_email}, ${salesman_phone}

Part of a date

${created_at_day}, ${created_at_month}, ${created_at_year}, or ${due.month} for a date field named due

A number in words

${budget.text}. In English, so 1,500,000 prints as "one million five hundred thousand".

Formatted text (bold, lists)

${notes.html}, alone in its own paragraph

An image from a file field

${photo.image}, alone in its own paragraph in Word or in its own cell in Excel

A link to the lead

${lead_url}

The stage and status

${stage_name} and ${status_name}

Tables. In Word, put the column variables for a table field in one row of a Word table, for example ${items.product} and ${items.qty}. That row repeats once for each row of the field. For totals, use ${items.qty.sum} or ${items.count}. Excel does not repeat rows, so use ${items.text}, which prints every row as lines of text.

Example. A quote template has the line "Prepared for ${name} at ${company} by ${owner_name}." For a lead named Mai Tran at Bright Dental, owned by Linh, it prints "Prepared for Mai Tran at Bright Dental by Linh."

Manage your templates

Each template in the list shows its name, a Word or Excel badge, a Hidden badge if it is switched off, and the file name. The icons at the right are:

  • Download: the original file, to edit and upload again.

  • Re-check tags: checks the file against the service's fields again. Use it after you add or rename fields. If all is well, you see "Every tag is known".

  • Edit: opens Template settings.

  • Remove: removes the template after a confirmation. The uploaded file itself is left in storage.

In Template settings you can:

  • change the Name, which is what people see in the print dialog;

  • switch off Available when printing to hide the template while you work on it (managers can still print it);

  • use Replace the file to upload an edited file while keeping the settings;

  • set the QR code position: Top left, Top right, Bottom left or Bottom right, for the PDF with QR code format;

  • turn on Custom file name and write a File name pattern such as {template_name} - {lead_name}. You can use {template_name}, {lead_name}, {lead_id} or any variable in single curly braces, such as {company}. Without a pattern, the file is named after the template and the lead.

When a template shows a badge

After you upload, a template can show a badge. Click it to see the details.

Badge

What it means

What to do

N unknown tags (amber)

Variables that are not fields of this service: a typo, or a field that was renamed or removed. They print blank.

Fix them in Word or Excel, then use Edit > Replace the file.

N warnings (amber)

Older spellings that no longer fill, or Excel row markers that cannot repeat rows

Replace them with variables from Available variables. For tables in Excel, use the .text variable.

N notes (grey)

A custom field has the same code as a built-in variable, and the field's value wins

Usually nothing. Rename the field's code if you wanted the built-in one.

Print a lead

  1. Open the lead and click β‹― > Print. If you do not see Print, the service has no template yet.

  2. Choose the Template.

  3. Choose the Format:

Format

You get

Word document or Excel workbook

The filled-in file, still editable

PDF

A PDF of it

PDF with QR code

A PDF with a QR code on every page. Scanning it opens this lead.

  1. Click Print. The file downloads and you see "Downloaded" with its name.

The Print dialog from a lead with the Template select

Troubleshooting

Problem

Why it happens

What to do

Print is not in the β‹― menu

The service has no print template, or none is switched on for you

A manager adds one under Print templates.

"PDF printing is not set up on this server yet. Ask an administrator to configure document conversion."

PDF conversion is not installed on your server

Print as Word or Excel, or ask your administrator to set up PDF conversion.

"The PDF was created, but the QR code could not be added."

The PDF came out but the QR stamp failed

Use the PDF without the QR code, or try again.

"That template has variable errors. Fix them in Word and upload it again:"

The template holds tags that cannot be filled

Ask a manager of the service to fix the template.

"This lead or template is no longer available."

The lead or template was removed while you were printing

Reload the lead and pick another template.

"The document could not be generated."

An unexpected problem while building the file

Try again. Ask a manager to check the template with Re-check tags.

A value prints blank

You may not see that field, or the variable name is wrong

Check the variable in Available variables. Fields you cannot see always print blank.

"Template limit reached"

The service already holds 30 templates

Remove one you no longer use.

"Print templates must be .docx or .xlsx files."

The file is another type

Save the template as Word (.docx) or Excel (.xlsx).

More help: Common errors and fixes.