---
sourceDocument: Yokohama Employee Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/employee-service-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Create block content in Document Templates

# Create block content in Document Templates {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 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 AllDocument TemplatesDocument 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:  
   {#create-doc-blc-cnt__table_lld_cps_ypb__entry__2}

   | 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](https://www.servicenow.com/docs/fOQr9CdE_6v~hUYK6uDS5Q "Create or modify the document template with your unique company logo and audience criteria."). |
   [Table 1. Document Template Block Contents form]

   {#create-doc-blc-cnt__table_lld_cps_ypb}
5. Click Submit.

*[\>]: and then


