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

 Release :

    - zurich

ft:locale :

    - en-US

ft:publication_title :

    - Zurich Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Edit a generated document

# Edit a generated document {#ariaid-title1}

* Release version: Zurich
* 
* Updated July 31, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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 AllHR Case ManagementAll HR CasesAssigned to me.
2. Open an HR case that is assigned to you.
3. Click Preview Document.
4. In the Preview Document window:  
   1. Click Edit Document. 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. Click Save changes.
   {#agent-edit-document__ol_shb_bxs_1xb}  
   The document is saved and sent as an attachment in document tasks that are created for participants.

*[\>]: and then


