Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Create block content in Document Templates

Each document template block can have multiple block contents. Each content mapping to a condition.

Before you begin

Role required: sn_doc.admin

About this task

Using document block content in an HTML template:

Consider an employee offer letter template as an example. While most of the content applies to all employees, the leave policy clause may vary by geographical region. In this case, a document block can be created with two block contents, one for each regional leave policy, and added to the body field of the offer letter. This enables dynamic generation of the appropriate leave policy content based on the employee's location.

Procedure

  1. Navigate to All > Document Templates > Document Template Blocks.

  2. Select a document template block.

  3. In the Document Templates Block Contents related list, click New.

  4. On the form, fill in the fields:

FieldDescription
NameSuitable name for the block content.
BlockName of the document template block to which you want to associate the document block content.
OrderOrder in which the conditions are matched. The first block content that matches the condition is considered.
ActiveOption to indicate that the block content is available to use.
Applies whenConditions are applied on the selected table on document template block.
Applies toUser criteria to which the block content is applicable.
Applies to userUser to whom the selected user criteria is applicable.Note: If no value is selected in the Applies when and Applies to fields, then the block content will be applicable for the HTML template irrespective of the user and selected table.
BodyText that you want to include in the block content.Note: The output of the HTML block content is automatically sanitized when the Sanitize option is enabled in the HTML template. For more details, refer to the Sanitize field in Configure an HTML document template.
  1. Click Submit.