--- title: Define the scripted variables description: Define data for the scripted variables using the Template Configurations module for creating a report template in the Audit application. You can configure the data in either text or HTML format. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/governance-risk-compliance/grc-common-functions/define-the-scripted-variables.html release: australia product: GRC Common Functions classification: grc-common-functions topic_type: task last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Configure document templates using Document Designer, Microsoft Word based audit report templates using Document designer, Common GRC features, Governance, Risk, and Compliance] --- # Define the scripted variables Define data for the scripted variables using the Template Configurations module for creating a report template in the Audit application. You can configure the data in either text or HTML format. ## Before you begin Role required: sn\_grc\_doc\_design.developer ## Procedure 1. Navigate to **All** > **Audit** > **Audit Report** > **Template Configurations**. 2. Open the template for which you want to create scripted variables. 3. Select the **Scripted variables** tab. \[Omitted image "scripted-variable.png"\] Alt text: Scripted variables tab. 4. In the Scripted variables related list, select **New** to create a scripted variable. \[Omitted image "new-scripted-variable.png"\] Alt text: Scripted variable new record form. 5. In the **Name** field, provide a descriptive name for the template. 6. From the **Type** drop-down list, select either Text or HTML based on your requirement. 7. Turn on the **Script** toggle to enable custom script for the scripted variable. 8. Select **Submit**. The Scripted variables for the template appear in the related list.