Skip to content

Commit a0f7f5f

Browse files
Create Readme.md
1 parent aaf822a commit a0f7f5f

File tree

1 file changed

+45
-0
lines changed
  • Client-Side Components/Client Scripts/Auto-Populate Short Discription

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Auto-Populate Short Description (Client Script)
2+
Overview
3+
4+
This client script automatically updates the Short Description field in ServiceNow whenever a user selects a category on the form. It improves data consistency, saves time, and ensures that short descriptions remain meaningful and standardized.
5+
6+
How It Works
7+
8+
When a user selects a category such as Hardware, Software, or Network, the script automatically prefixes the existing short description with a corresponding label (for example, “Hardware Issue –”).
9+
This makes incident records easier to identify and improves the quality of data entry.
10+
11+
Configuration Steps
12+
13+
Log in to your ServiceNow instance with admin or developer access.
14+
15+
Navigate to System Definition → Client Scripts.
16+
17+
Create a new Client Script with the following details:
18+
19+
Table: Incident
20+
21+
Type: onChange
22+
23+
Field name: category
24+
25+
Copy and paste the provided script into the Script field.
26+
27+
Save the record and make sure the script is active.
28+
29+
Testing
30+
31+
Open any existing or new Incident record.
32+
33+
Select a category such as Hardware or Software.
34+
35+
The Short Description field will automatically update with the corresponding prefix.
36+
37+
Benefits
38+
39+
Speeds up data entry for users.
40+
41+
Maintains consistency in short descriptions.
42+
43+
Reduces manual effort and human errors.
44+
45+
Enhances clarity in incident listings and reports.

0 commit comments

Comments
 (0)