Guides
- Show or hide content with IF conditions Show or hide text, clauses and table rows in a Word template based on Salesforce data with native {{IF}}, {{ELSE}} and {{ENDIF}} tags.Updated September 2026
- Add a template: upload, pre-built, from scratch or existing Choose how to add a document template to a solution in v1.25 or later: upload a file, start from a pre-built template, build one from scratch in the Template Editor or reuse an existing template.5 min read · Updated November 2026
- Add fields from related records (child and lookup objects) Add child and lookup relationships on the Gather Data page so you can merge fields from related objects into your templates.Updated August 2025
- Add your company logo and images to a template Three ways to put a logo or image in generated documents: insert it in the template, reference a static resource, or pull a per-record image from a URL field, and how to place it in the header.5 min read · Updated November 2026
- Choose a data source: relationships, SOQL, pv0, QVars, Apex or reports Most templates need only fields and relationships. Use a SOQL query with pv0 for filtered or unrelated records, Apex for computed data, a report ID for report data, a QVar to feed a parameter and a static resource for reused content.6 min read · Updated November 2026
- Choose templates dynamically with a QVar query Use a document query and QVar parameters so a button offers only the document templates that match the record.Updated November 2026
- Create a Document Solution Collection ProGroup several document solutions into one collection and show them together on a Salesforce record page.Updated November 2026
- Create a static resource for document generation ProUpload text, an image or HTML as a Salesforce static resource and merge it into your Docs Made Easy templates.Updated November 2026
- Filter a query to the current record (pv0) Filter a document query to the record you're working on with the pv0 parameter, then merge the results into a template.Updated November 2026
- Generate documents in other languages and locales Produce the same document in another language and with another country's date, number and currency formats, using custom labels, the language parameter and culture codes.6 min read · Updated November 2026
- Handle special characters in IF conditions Use escape sequences for double quotes, apostrophes and forward slashes inside the value of a native {{IF}} condition.Updated September 2026
- Headers, footers and page setup in templates Set up headers, footers, page numbers, page breaks, images and watermarks in Word templates and the Template Editor, so every page of the generated document looks right.6 min read · Updated November 2026
- Merge data returned by an Apex class Fetch and process data in a custom Apex class, register it in Gather Data, and merge the results into your document templates.Updated November 2026
- Merge several templates into one document Combine several templates, such as a proposal and its terms and conditions, into one generated document with the MergeDocument parameter.5 min read · Updated November 2026
- Merge syntax: {{…}} vs {!…} explained Compare the old {!...} merge syntax with the new {{...}} syntax introduced in Docs Made Easy version 1.10, with examples.Updated October 2025
- Parameters explained: template tags vs solution and button parameters Some parameters are written in the template (tags and switches); others are set on the document solution or button URL. This page explains the kinds and lists every parameter page by where it goes.5 min read · Updated November 2026
- Preview a merged document before you generate it Use the merge preview (v1.25) to see your template filled with a real record's data, fix problems, and only then generate the final document.4 min read · Updated November 2026
- Pull data into a template with a SOQL query Build a SOQL query in Gather Data to pull live, record-specific Salesforce data into your generated documents.Updated November 2026
- Show percentages in generated documents Display a number field with a percent sign (%) in a generated document by adding a percentage format to the merge field.Updated November 2026
- Template syntax basics: merge fields, tables and switches A Docs Made Easy template is a normal Word file with merge fields in double curly braces. Tables repeat rows for child records, switches format values, and IF blocks show or hide content.5 min read · Updated November 2026
- Use a query result as a parameter value (QVars) Use QVar query variables to look up values such as email recipients or template IDs at generation time instead of hardcoding them.Updated November 2026
- Use Excel, PowerPoint and PDF form templates ProWhat you can do with Excel, PowerPoint and PDF form templates in Docs Made Easy Pro, the syntax each needs, and the edition and format limits.6 min read · Updated November 2026
- Use nested queries and nested tables in a template Fetch multi-level related data with one SOQL subquery and show it as a table inside a table in a Word template.6 min read · Updated November 2026
- Use SOQL query merge fields in Excel templates Show SOQL query results in an Excel template with the &=${{QueryAlias.Field}} merge syntax, then upload the template.Updated April 2026
- Use the TableRow parameter (legacy) Number the rows of a table in a template with the legacy TableRow syntax, or use the current RowNumber and RowCount parameters.Updated August 2025
- Use Word IF fields instead of native IF conditions Show different text in a generated document based on Salesforce field values by inserting a Microsoft Word IF field in your template.Updated November 2026
Common questions
Can Docs Made Easy add QR codes to generated documents?
Learn whether you can add dynamic QR codes with links, text or record data to quotes, contracts, invoices and other documents.
Read the full answer →Can I filter child relationship records in a template?
Limit the child records that appear in a generated document by using a document query with pv0 filters.
Read the full answer →Copy merge fields with the Merge Field Helper
Find the merge field syntax for your template in the Merge Field Helper or with the Available Merge Field button in Gather Data.
Read the full answer →Format numbers: decimal places and thousands separators
Control how many decimal places a number shows in a generated document by adding a number format after the merge field.
Read the full answer →How do I add a hyperlink to a DOCX or PDF document?
Add a clickable link to a generated DOCX or PDF document with the HYPERLINK merge syntax and your own display text.
Read the full answer →How do I add one year to today's date in a template?
Show a date one year after today, or any other offset, in a generated document with the ADJUST merge syntax.
Read the full answer →How do I add Rich Text Area fields to a template?
Merge a Rich Text Area field into a template with the HTML tag so the generated document shows its formatting instead of raw HTML.
Read the full answer →How do I add Salesforce report data to a document?
Pull Salesforce report data into a generated document by adding the report's ID to the Docs Made Easy button.
Read the full answer →
Nothing matches. Ask our team →