Sub-templates

What a sub-template is

A sub-template is a template that can be embedded inside other templates. Use sub-templates for shared content that appears in many documents: standard terms, a letterhead, a signature block, a confidentiality clause. Maintain the content once, and reuse it everywhere it is embedded.

Making a template reusable

Before a template can be embedded, turn on its Reuseable switch in the builder and save it. Only templates marked reuseable appear in another template's sub-template picker.

Embedding one

In the parent template's builder, open the Sub-Templates dropdown and pick the reusable template. It is inserted as a sub-template block. The reference is stored by the source template's stable identifier, not its record Id, so embedded references keep working when templates are moved between orgs.

Dynamic versus static

When you embed a sub-template, it is embedded in one of two modes. This is the key decision.

Dynamic

A dynamic sub-template is a live reference. The parent stores only a placeholder, and editing inside it is locked. Each time the parent document renders, the current content of the source template is pulled in fresh.

Use dynamic when the shared content changes over time and every document should always show the latest version. Update the source once and every parent that embeds it dynamically updates automatically.

Static

A static sub-template is a snapshot. The source content is copied into the parent at the moment you embed it, and it becomes part of the parent, editable in place. Later changes to the source do not flow through.

Use static when you want a fixed copy at a point in time, or when you need to tweak the embedded content for this one document.

Dynamic Static
Stays in sync with the source Yes, at every render No, snapshot only
Editable inside the parent No, locked Yes
Best for Shared content that must stay current A fixed or customised copy

Rendering

Whether dynamic or static, a sub-template's own merge fields, inputs, and repeat blocks are processed like any other content, resolved against the same context record as the parent. Sub-templates can be nested.

Tips