Templates builder guide

What the builder is

The Templates builder is the authoring app where you design a document once, using a visual editor, and drop in dynamic content that resolves from Salesforce data at render time. The finished design is saved as a versioned template definition and published as a link.

Open the builder from a Template record (the Full Editor action) or the Template Editor tab. The builder loads a single template, identified by the id URL parameter (the Template record Id). It is always in full edit mode.

Two-step saving: most panels (Settings, Margins, Labels) and the toolbar switches change the template in memory only. Nothing is stored until you Save with a revision reason. Save often.

The canvas

The center of the builder is the document canvas: a live, formatted view of the document. What you see is what the recipient and the PDF will look like, including margins and page size. You type content directly, format it with the menu bar and floating toolbars, and insert dynamic elements from the toolbar.

Type # anywhere to open a quick field picker for the current context object's fields, and insert them as merge chips inline.

Toolbar switches (document behaviour)

Three toggles set how the published document behaves. They are saved on the Template record.

Switch Effect
e-Sign Turns the document into a sign-and-download workflow. Off means download only.
View Only The document is merged with Salesforce data and shown read-only. Recipients cannot interact with it.
Reuseable Makes this template available to embed inside other templates as a sub-template. Must be on and saved before it appears in another template's sub-template list.

Settings

The Settings panel controls the recipient experience and page setup. Every option is described in Template settings reference. It also holds two label sections:

All text is editable per template, so you can localise or reword the entire recipient experience without code.

Settings > UI Labels > Required Field controls the missing-value message, whose default is "This field is required". From version 10.11.0, the saved text appears in the submission form's warning tooltip as well as its completion warning. Save the Template after changing it. See Template settings reference.

Margins and page setup

The Margins panel sets top, right, bottom, and left margins, each with a unit (px, mm, pt, em, rem). Page size (A4 or Letter) and orientation (portrait or landscape) live in Settings. Margins apply live on the canvas and to the final PDF.

Headers and footers

Open Header & Footer beside Margins to add content repeated on every PDF page, including an optional different first page. Headers and footers support formatting, images, tables and merge fields. Click Update, then Save the template. The builder canvas shows the body only; check the completed PDF for the repeating layout. See Headers and footers.

Insert tools

The toolbar's insert group is where dynamic content comes from.

Inputs

Drop a field the recipient fills in. Types: Text, Date, Checkbox, Drop Down, Radio, and Pre-Signed Signature. Each placed input has a floating toolbar for quick options (Inline, Required, Settings, Delete) and a settings panel for:

Inputs dropped inside a table cell are created inline automatically. See Input fields and submitter assignment.

Functions

Insert a reusable function expression (for example, current date, or a built-in signature). Selecting one inserts a function chip and copies it for pasting. See Function expressions.

Field expressions

Opens the Expression Generator, where you pick a context object, a related object, and a field path to build a merge expression that pulls live data. See Expression generator and field paths.

URL params

Insert a custom URL tag: a placeholder that resolves from a URL parameter on the published link at render time. See Custom URL tags.

Sub-Templates

Embed another reusable template inside this one. See Sub-templates.

Repeat content

Repeat sections and repeat blocks iterate over related child records, with optional custom filtering. These are created from the Expression Generator's context copy, not a toolbar button. See Repeat sections and repeat blocks.

Merge field formatting

Each merge chip has a floating toolbar. For data fields it offers a Value Formatters dropdown to format the merged value (dates, case, and so on). For signature chips it offers a Submitters dropdown to assign the signature to a signer. See Value formatters.

Standard formatting

The menu bar and floating toolbars provide the full set of document formatting: headings, fonts and colours, bold/italic/underline, lists, alignment, indentation, links, tables (with cell and table properties), images (upload, URL, resize, caption, alt text), media embeds, page breaks, special characters, find and replace, and undo/redo. A minimap on the right helps navigate long documents.

Source view

The Source code tool opens the raw markup of the document, formatted for readability. Edit it directly and save back to the canvas. This is the escape hatch for markup the visual tools do not expose. Use with care.

Preview and publish

The Preview tool opens the Publisher. There you set the context object, optionally pick a specific record and a specific saved version, choose where to publish (internally or on a site/community), and get the shareable document link. Save and Preview persists the context object and site, then opens the document in a new tab in preview mode. From here you can also start a redline workflow when a record is selected. See Publishing and workflows.

Save and revision history

Save requires a revision reason and writes a new version of the template definition, so every change is tracked. The View Revisions sidebar lists every version newest first, with author, date, and reason. You can:

Cloning

The Clone Template action on a Template record copies the template (its definition and any embedded resources) into a new template named with a "(Cloned)" suffix. The clone gets a fresh identity, so it is independent of the original.