Template blocks reference
Every block of a document template - header, footer, field grid, tables, totals, text, signatures, e-signature fields, QR code, image, tax - and its options.
- Who can use this
- Account owner
Every block of a document template - header, footer, field grid, tables, totals, text, signatures, e-signature fields, QR code, image, tax - and its options.
A block template is a list of blocks, printed from top to bottom between the header and the footer. Add a block with Add section... in the template editor (Create a document template). Move a block with the up and down arrows on its card, or remove it.
In any text box you can type placeholders such as {{record.invoiceNumber}}, {{record.customer.name}} or {{settings.companyName}}. Click a chip under Available Variables (click to insert at the cursor) to insert one.
| Part | Options |
|---|---|
| Header | Company Name (default {{settings.companyName}}), Company Address (default {{settings.companyAddress}}), Title (for example INVOICE) shown as a Badge (the default) or Text, Subtitle (for example {{record.invoiceNumber}}) |
| Footer | Left, Center, Right. The center starts as Page {{pageNumber}} of {{totalPages}} |
The page number and page count ({{pageNumber}} or {{page}}, {{totalPages}} or {{pages}}, the Page # and Total Pages chips) are filled in only in the footer. In the header or a block they print empty.
| Block | What it prints | Options |
|---|---|---|
| Field Grid | Label–value pairs in columns, for example invoice number, date and due date | Section Label (optional), Columns (1–3), and per field: label, value (a placeholder) and format (None, Currency, Date, Number, Percent) |
| Text | A paragraph | Content, with placeholders |
| Heading | A heading line | Content |
| Notes | A labelled box of text | Section Label, Content (for example {{record.notes}}) |
| Terms & Conditions | A numbered list of terms | Heading, items (+ Add Term) |
| Block | What it prints | Options |
|---|---|---|
| Related Table | One row per related record, for example the line items of an invoice | Section Label, Relation Name (the relation's name on the module, such as lines or items), and columns: header, field, width %, format (None, Currency, Date, Number, Percent, Boolean) and alignment |
| Table | Rows from a list value stored on the record | Title, Source (for example {{record.lineItems}}), columns (header, field, width %, format, alignment), Show Total |
| Summary | Totals, usually under a table | Items: label, value (for example {{record.total}}), format (type currency, date, number or percent) and Bold (a bold item gets a line above it) |
The Show Total switch of a Table block doesn't print a total row. Put the total in a Summary block under the table instead.
| Block | What it does | Options |
|---|---|---|
| Row (Side-by-Side) | Puts blocks next to each other, for example the seller and buyer details | Gap (px), Add Column (Field Grid, Image, Text, Heading, Notes, QR Code), up to 6 columns, and a Weight per column for its width |
| Divider | A horizontal line | None |
| Spacer | Empty space | Height (px) |
| Block | What it prints | Options |
|---|---|---|
| Image | Pictures from an image or file field of the record. When the field is empty, it prints "(No image)" | Image Field Name (for example productImage), Columns (for multiple images) (1 single, 2 side-by-side, 3–4 grid), Width (px) (single column only; with more columns the images share the page width), Height (px), Align (single column only) |
| QR Code | A QR code of any value | Value (default {{record.id}}, for example {{record.ticketCode}}), Size (px) (default 120), Label (default Scan), Align |
| Block | What it prints | Options |
|---|---|---|
| Signature Lines | Lines to sign on paper | Line Width (px), and per line a label (for example Requested By) and title (for example Manager) |
| Signature Block | Signature areas with name and date | Per signature: label (for example Authorized By), pre-filled name (for example {{record.approvedBy}}), title, Show date |
| E-signature fields | Boxes that signers fill in when you send the PDF for e-signature | Signature boxes (side by side), up to 6 per block (+ Add box). Per box: signer role (for example customer), field type (Signature, Initials, Date signed, Text, Checkbox), caption under the box (for example For {{settings.companyName}}), Required |
E-signature boxes are placed for each signer automatically when the document is sent for signature: a signer with the role "customer" fills every box marked customer. A role is a short name that starts with a lowercase letter and uses letters, digits, _ or -. Every box is required except checkboxes, unless you change Required. A box that doesn't fit moves to the next page. E-signature boxes can't go inside a row. A block hidden by its condition (see below) gives its signer no box. A template can name up to 20 signer roles.
| Block | What it prints | Options |
|---|---|---|
| Tax Summary | The record's tax per tax code and rate, plus the wording the country requires (for example reverse charge) | Title, Layout (Automatic, One row per tax and rate, India GST (CGST / SGST / IGST)), Breakdown field (optional), Required wording, Total row |
| Tax IDs (seller / buyer) | Your tax number (Settings → Tax, card Tax registrations), the customer's (their tax profile, or a tax ID field on the customer record), and the place of supply | Seller, Buyer, Place of supply, seller and buyer labels |
Every block has Conditional Visibility: print it only when a field meets a condition. Type the field's name, choose an operator (Equals, Not Equals, Is Empty, Is Not Empty, Greater Than, Less Than) and type a value. For example, show a "PAID" notes block only when status equals Paid. Equals and Not Equals compare with the value as it prints on the PDF, so a choice stored as paid matches Paid; the comparison is case-sensitive. Greater Than and Less Than compare numbers.