Edit an HTML document
Support rendering values of variables, scripts, and blocks in edit mode in Preview Document. View the content of variables, scripts, or blocks rather than only viewing the variable or block names.
Before you begin
Role required: sn_hr_core.case_writer
Note: This feature is available only when the document is generated from a template in the Document Template plugin.
Procedure
-
Navigate to All > HR Case Management > Agent Workspace for HR Case Management.
-
Select Lists.
-
Open an HR case that is assigned to you.
-
Select Preview Document.
-
In the Preview Document window:
-
Select Edit. Except for signature tokens, all other variables, scripts and blocks are rendered with their values.
-
Add text, any valid tokens, or signature tokens.
Note: Invalid tokens will be removed while saving.
-
Select Save. The document is saved and sent as an attachment in document tasks that are created for participants.
-
---
title: Edit an HTML document
description: Support rendering values of variables, scripts, and blocks in edit mode in Preview Document. View the content of variables, scripts, or blocks rather than only viewing the variable or block names.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/employee-service-management/agent-workspace-for-hr-case-management/agent-edit-document-ws.html
release: brazil
product: Agent Workspace for HR Case Management
classification: agent-workspace-for-hr-case-management
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Templates in Agent Workspace for HR Case Management, Use, Agent Workspace, HR Service Delivery, Employee Service Management]
---
# Edit an HTML document
Support rendering values of variables, scripts, and blocks in edit mode in Preview Document. View the content of variables, scripts, or blocks rather than only viewing the variable or block names.
## Before you begin
Role required: sn\_hr\_core.case\_writer
**Note:** This feature is available only when the document is generated from a template in the Document Template plugin.
## Procedure
1. Navigate to **All** > **HR Case Management** > **Agent Workspace for HR Case Management**.
2. Select **Lists**.
3. Open an HR case that is assigned to you.
4. Select **Preview Document**.
5. In the Preview Document window:
1. Select **Edit**. Except for signature tokens, all other variables, scripts and blocks are rendered with their values.
2. Add text, any valid tokens, or signature tokens.
**Note:** Invalid tokens will be removed while saving.
3. Select **Save**.
The document is saved and sent as an attachment in document tasks that are created for participants.
| title | Edit an HTML document |
| description | Support rendering values of variables, scripts, and blocks in edit mode in Preview Document. View the content of variables, scripts, or blocks rather than only viewing the variable or block names. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/employee-service-management/agent-workspace-for-hr-case-management/agent-edit-document-ws.html |
| release | brazil |
| product | Agent Workspace for HR Case Management |
| classification | agent-workspace-for-hr-case-management |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Templates in Agent Workspace for HR Case ManagementUseAgent WorkspaceHR Service DeliveryEmployee Service Management |