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
Navigate to All > Document Templates > Document Template Blocks.
Select a document template block.
In the Document Templates Block Contents related list, click New.
On the form, fill in the fields:
| 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. |
- Click Submit.