Configure the preview text setting for a standard article template
Configure the preview text setting to customize the default preview text for a standard article template.
Before you begin
Role required: admin
Procedure
-
Navigate to All > System Definition > Script Includes.
-
On the Script Includes page, in the Name field, enter
ArticleTemplateUtilSNC. -
Open the ArticleTemplateUtilSNC record.
-
On the ArticleTemplateUtilSNC page, copy the following code from the Script field.
JavaScriptsetPreviewTextForStandardArticle: function(){ return null; }, -
On the Script Includes page, in the Name field, enter
ArticleTemplateUtil. -
Open the ArticleTemplateUtil record.
-
On the ArticleTemplateUtil page, modify the code in the Script field by pasting the copied code as shown.
JavaScriptvar ArticleTemplateUtil = Class.create(); ArticleTemplateUtil.prototype = Object.extendsObject(ArticleTemplateUtilSNC,{ type: 'ArticleTemplateUtil', setPreviewTextForStandardArticle: function(){ return null; }, }); -
In the Script field, remove
nulland enter a preview text. -
Select Update.
Result
The modified preview text displayed on the standard article template selector.
Example
The following code is modified to show custom preview text. You can also include HTML tags to modify the appearance of preview text.
var ArticleTemplateUtil = Class.create(); ArticleTemplateUtil.prototype = Object.extendsObject(ArticleTemplateUtilSNC,{ type: 'ArticleTemplateUtil', setPreviewTextForStandardArticle: function(){ return 'Demo for standard article'; }, });Parent Topic:Configure knowledge article templates
---
title: Configure the preview text setting for a standard article template
description: Configure the preview text setting to customize the default preview text for a standard article template.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/servicenow-platform/knowledge-management/create-template-standard-article.html
release: brazil
product: Knowledge Management
classification: knowledge-management
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Configure knowledge article templates, Configuring Knowledge Management, Knowledge Management, Manage content capabilities, Extend ServiceNow AI Platform capabilities]
---
# Configure the preview text setting for a standard article template
Configure the preview text setting to customize the default preview text for a standard article template.
## Before you begin
Role required: admin
## Procedure
1. Navigate to **All** > **System Definition** > **Script Includes**.
2. On the Script Includes page, in the **Name** field, enter `ArticleTemplateUtilSNC`.
3. Open the ArticleTemplateUtilSNC record.
4. On the ArticleTemplateUtilSNC page, copy the following code from the **Script** field.
```
setPreviewTextForStandardArticle: function(){
return null;
},
```
5. On the Script Includes page, in the **Name** field, enter `ArticleTemplateUtil`.
6. Open the ArticleTemplateUtil record.
7. On the ArticleTemplateUtil page, modify the code in the **Script** field by pasting the copied code as shown.
```
var ArticleTemplateUtil = Class.create();
ArticleTemplateUtil.prototype = Object.extendsObject(ArticleTemplateUtilSNC,{
type: 'ArticleTemplateUtil',
setPreviewTextForStandardArticle: function(){
return null;
},
});
```
8. In the **Script** field, remove `null` and enter a preview text.
9. Select **Update**.
## Result
The modified preview text displayed on the standard article template selector.
## Example
The following code is modified to show custom preview text. You can also include HTML tags to modify the appearance of preview text.
```
var ArticleTemplateUtil = Class.create();
ArticleTemplateUtil.prototype = Object.extendsObject(ArticleTemplateUtilSNC,{
type: 'ArticleTemplateUtil',
setPreviewTextForStandardArticle: function(){
return 'Demo for standard article';
},
});
```
**Parent Topic:**[Configure knowledge article templates](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/servicenow-platform/knowledge-management/configure-knowledge-article-templates.md)
| title | Configure the preview text setting for a standard article template |
| description | Configure the preview text setting to customize the default preview text for a standard article template. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/servicenow-platform/knowledge-management/create-template-standard-article.html |
| release | brazil |
| product | Knowledge Management |
| classification | knowledge-management |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Configure knowledge article templatesConfiguring Knowledge ManagementKnowledge ManagementManage content capabilitiesExtend ServiceNow AI Platform capabilities |