Create block content in Document Templates

  • Release version: Yokohama
  • Updated January 30, 2025
  • 1 minute to read
  • 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:
      Table 1. Document Template Block Contents form
      Field Description
      Name Suitable name for the block content.
      Block Name of the document template block to which you want to associate the document block content.
      Order Order in which the conditions are matched. The first block content that matches the condition is considered.
      Active Option to indicate that the block content is available to use.
      Applies when Conditions are applied on the selected table on document template block.
      Applies to User criteria to which the block content is applicable.
      Applies to user User 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.
      Body Text 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.
    5. Click Submit.