Skip to main content
Version: 4.0 (2026 H1)

Accessing primedocs fields

primedocs provides numerous fields. These fields are text containers with an id whose content is determined during generation by the document functions and/or by a Connect call.

In web-capable templates, all profile data of the current user is available automatically. The most important document functions for this are:

  • Forms — enables the entry of user data.
  • Data — used to transmit data via the Connect interface.
  • Fields — used to merge or transform data.

Depending on type and application, the document functions are inserted as the corresponding content controls. This creates a data binding between primedocs and the document. primedocs tracks these data bindings and validates the fields both during generation and during later updates.

Overview: field type per Office application

The following matrix shows which field types are directly supported in which Office applications:

WordOutlook (web)PowerPointExcel
Text
FormattedText✓ *
WordContent
InlineWordContent
WordTableRows
Date
YesNo
Picture
Object
ObjectCollection

* Outlook e-mails and signatures are only stored as HTML in the web-capable Outlook version. Global translations of type FormattedText can contain arbitrary HTML elements via the FormattedText field in Outlook templates and are therefore more flexible than those in Word or PowerPoint templates. For a list of the permitted HTML elements in Word and PowerPoint, see FormattedText.

note

Field types that cannot be used directly (✗) can be used via Text or FormattedText.

Word

primedocs allows fields to be linked directly within Word templates and embedded in snippets. This enables documents to be created dynamically and automatically — without manual rework.

Inserted content control per field type

Field typeContent control
TextPlainText
FormattedTextRichText
WordContentRichText
InlineWordContentRichText
WordTableRowsRichText (table row only)
DateDate
YesNoCannot be inserted.
PictureImage
ObjectCannot be inserted.
ObjectCollectionCannot be inserted.

Inserting a Forms field into a template

  1. Create a field in Forms.
  2. Open the Word template in primedocs.
  3. Place the cursor at the correct position in the document.
  4. Click «Bind field».
  5. In the «Select field» dialog, choose the Forms field from the dropdown list.
  6. Confirm with «Insert».

Placeholders for layout templates

Fields can be stored directly in content templates. For layout templates, placeholders must be created.

Placeholders for snippets

Snippets that are inserted during document generation via the $.snippets… JavaScript API also require suitable placeholders. These act as the link between the dynamic field data and the static text content of the snippets.

  • Snippet Placeholder
    • Allows the embedding of simple Text or field references via $.getReference(...).
    • The placeholder's formatting is retained and not overwritten by the inserted content.
  • Snippet Block Placeholder
    • Supports the embedding of FormattedText and WordContent.
    • The formatting is fully taken from the inserted content.
    • Corresponds to a complete paragraph in Word.
  • Snippet Inline Placeholder
    • Allows the embedding of InlineWordContent, e.g. formatted text parts within a paragraph.
    • The content must consist of exactly one paragraph.
    • The formatting comes from the inserted content and may differ from the surrounding text.
  • Snippet Table Row Placeholder
    • Used for the dynamic generation of table rows.
    • The placeholder must enclose a complete table row.
    • The expected content type is WordTableRows, which can contain further sub-types (Text, WordContent, FormattedText, InlineWordContent).

Colour coding

In Word, content controls are highlighted in colour depending on type and mode. This makes them easier to distinguish visually during editing and review.

ModeDescription
Editing modeContent controls are colour-coded to show how they work.
Test modeAdditional highlighting in ⬛ if the content control should not be visible later.
After generationThe content controls are either hidden or shown in 🟦.

Behaviour when using $.getReference(...)

Snippet placeholders can be linked directly to fields via the JavaScript API $.getReference(...):

  • With field link: the field is inserted directly; the content control is retained and behaves like a regularly bound field.
  • Without field link: static content is inserted; the original content control is replaced by the inserted content.
TypeContent control colour
Field inserted directly («Bind field»)🟦
Field inserted directly with word-UpdateBehavior="Disable" (only for FormattedText, WordContent, InlineWordContent, WordTableRows)⬛ in test mode, invisible after generation
Snippet Placeholder🟨 in editing mode, invisible or 🟦 after generation
Snippet Block Placeholder🟧 in editing mode, invisible or 🟦 after generation
Snippet Inline Placeholder🟩 in editing mode, invisible or 🟦 after generation
Snippet Table Row🟪 in editing mode, invisible or 🟦 after generation
Placeholder in the layout🟩 in editing mode, 🟦 after generation

PowerPoint

In PowerPoint, data binding is done via tags attached directly to shapes or slide objects. These tags act as identifiers through which content is dynamically assigned and updated.

TagDescription
primedocs.FormattedTextDisplay the formatted content from a FormattedText field
primedocs.PictureDisplay an image
primedocs.Placeholder.PictureMaster template: image placeholder
primedocs.Placeholder.TextMaster template: text placeholder
primedocs.Placeholder.VisibilityMaster template: visibility placeholder
primedocs.TextDisplay a text
primedocs.VisibilityControls the visibility of an element
primedocs.BringToFrontIfOverlappedCan be enabled for elements in the slide layout or master. Ensures that these elements are not covered by an image placeholder but always stay in the foreground. Available from version 4.0.30114.0.

Excel

In Excel, the data is managed via a hidden worksheet. This sheet contains the structured field data, which can be embedded into other areas of the file via formulas or cell references.