Skip to main content
Version: 4.0 (2026 H1)

WordContent Snippet

A WordContent snippet is a reusable block of native Word content — text with formatting, tables, images, content controls, or any other element that can exist in a Word document. It is stored as part of a template and injected into a document at generation time.

WordContent snippets are intended for layouters. They are stored in the Design (template) category and are not visible to end users.

When to Use WordContent Snippets​

Use a WordContent snippet when you need to:

  • Reuse a complex formatted block (e.g. a table, address block, or legal clause) across multiple templates.
  • Dynamically insert different content blocks depending on user input or profile data.
  • Keep headers, footers, or body sections consistent across content templates that share the same layout.

For simple formatted text (bold, italic, line breaks), use a FormattedText snippet instead — it is lighter and HTML-based.

Creating a WordContent Snippet​

  1. In primedocs Desktop, open a template in the Template Editor.
  2. Switch to the Snippets tab.
  3. Click New and select Word Content as the snippet type.
  4. Give the snippet a name and edit it in Word.
  5. Save the snippet.

Using a WordContent Snippet in a Template​

WordContent snippets are referenced from templates via a SnippetBlockPlaceholder content control in Word, or dynamically via JavaScript in the Fields document function.

Via SnippetBlockPlaceholder​

Insert a Plain Text Content Control in the Word template body and set its tag to:

primedocs.SnippetBlockPlaceholder:[SnippetName]

At generation time, the content control is replaced with the full Word content of the named snippet.

Via JavaScript in Fields​

$.snippets.getWordContent("SnippetName")

This approach allows the snippet to be selected conditionally based on form input or profile data:

const snippetName = $.forms.get("Department") === "Legal" ? "LegalDisclaimer" : "StandardDisclaimer";
$.snippets.getWordContent(snippetName)

Permissions​

WordContent snippets are stored in the Design category. Only Template Admins and Sys Admins can create or edit them. See Snippet Permissions for details.