A custom print lets you control how a form or docket result looks when it is downloaded as a PDF or sent by email. Instead of Assignar’s default layout, results print using your own branded template with your logo, field order, and formatting.
|
Before you start
|
What is a custom print?
When a worker submits a form or docket, Assignar stores the result and lets you download it as a PDF. By default, that PDF uses Assignar’s standard layout.
A custom print replaces that default with a Word or Excel document template you build yourself. You place placeholder codes (e.g. {$id1}) in the template where you want each answer to appear. When Assignar generates the PDF, it merges the submitted data into your template automatically.
The result is a PDF that looks like your own document - your logo, your table layout, your branding - rather than a generic Assignar output.
When do you need a custom print?
- You send form or docket results to clients and want them to look professional and on-brand
- You need to control the layout - for example, putting signatures, photos, and checklist answers in a specific order
- You want automated email delivery of docket results to a client contact
|
Important - automated docket emails require a custom print
|
- The default PDF layout doesn’t display your data clearly - for example, you have a repeating table of crew members or multiple photos
- You need to show or hide sections of the output based on a worker’s answers (conditional printing)
You don’t need one if the default PDF download is sufficient for internal use or record-keeping.
How it works - the basics
Custom prints use Smarty template syntax - a simple coding language where variable codes pull in submitted data. You don’t need to be a developer to use it, but it does require some familiarity with Word tables and placeholder codes.
| 1 | Open your form or docket template in Assignar and go to the Custom Printing tab |
| 2 | Note the placeholder codes assigned to each question (e.g. {$id1}, {$id2}) |
| 3 | Build a Word or Excel document with your preferred layout - use tables to organise fields |
| 4 | Insert the placeholder codes where each answer should appear in the template |
| 5 | Save as .docx or .xlsx and upload back into Assignar’s Custom Printing tab |
| 6 | Test by downloading a form result as PDF - it will now use your custom template |
Word vs. Excel - which should I use?
| Word (.docx) | Excel (.xlsx) | |
|---|---|---|
| Best for | Forms and dockets with photos, signatures, checklists | Data-heavy outputs, tabular results, spreadsheet-style layouts |
| Images & signatures | Easiest to set up - insert placeholder code directly in the document | Requires a placeholder image inserted in a specific order |
| Repeating rows | Use {tablerow} or {foreach} | Use {tablerow} |
| Recommendation | Use Word for most custom prints | Only use Excel when a spreadsheet format is specifically required |
Recommendation: Start with Word (.docx) for most custom prints. If you have photos or signatures, Word is significantly easier to configure than Excel.
Common placeholder codes
These are the most frequently used codes in Assignar custom prints. The codes assigned to your specific questions are found in the Custom Printing tab of your form or docket template.
Basic field values
Each question in your form is assigned a code like {$id1}, {$id2}, etc. Use these to pull in a worker’s answer:
|
{$id1} {$id2} {$id3} |
Images and signatures
Use insert_image to display photos, sketches, or signatures. The numbers control the display size in pixels (width:height). Using 0 as height auto-scales without distortion:
|
{$idX|insert_image:300:0} ← photo, 300px wide, auto height {$idX|insert_image:100:0} ← signature, 100px wide, auto height |
Multiple images from one question
When a question allows multiple photos, use foreach or listrow to loop through them:
|
{foreach from=$idX item=_picture}{$_picture|insert_image:300:0}{/foreach} {listrow from=$idX item=_picture}{$_picture|insert_image:200:0}{/listrow} |
Repeating rows (e.g. crew list, multiple docket lines)
Use tablerow inside a Word table to repeat a row for each entry:
|
{tablerow from=$id10 item=_row} {$_row.data.id1} {$_row.data.id2} {$_row.data.id3} {/tablerow} |
Conditional sections
Use if to show or hide content based on a worker’s answer. The value is case-sensitive and must match the answer exactly:
|
{if !empty($id26_0)} END - {/if} {if $_row.data.id5}{$_row.data.id5}, {/if} |
Time and date formatting
Format timestamps to show only the time, not the date:
| {$_row.data.id2|date_format:"%H:%M"} ← displays as 14:30 |
Geolocation map image
Show a map image of the worker’s check-in location:
| {$google_map_image|insert_image:300:0} |
Things to know before you start
- Custom prints are set up per template - each form or docket template has its own custom print
- Placeholder codes are unique to each template - check the Custom Printing tab for the correct codes for your specific form
- For Excel templates with images, insert placeholder images in the exact order you want them indexed - Excel numbers them by insertion order, not position on the page
- The Word table used for repeating rows must have specific table design settings enabled - see the Tablerow article for details
- Custom print syntax is based on Smarty template language - advanced users can reference the Smarty documentation for additional functions