Skip to content

Commit d76f733

Browse files
Create Readme.md
1 parent 8859b81 commit d76f733

File tree

1 file changed

+39
-0
lines changed
  • Client-Side Components/Client Scripts/Set Urgency to High onChange of caller field

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
VIP Caller — Auto-Set Urgency Client Script (ServiceNow)
2+
Overview
3+
4+
This Client Script automatically sets the Urgency field to High (1) whenever a VIP caller is selected on a ServiceNow form.
5+
6+
It also shows a field-level info message to notify the user why urgency was updated. The script ignores non-VIP callers, ensuring normal behavior for regular users.
7+
8+
Features
9+
10+
Automatically detects when a VIP caller is selected.
11+
12+
Sets the Urgency field to High (1).
13+
14+
Displays a field-level message below the urgency field ("Urgency automatically set to High because caller is VIP").
15+
16+
Works dynamically every time the caller field changes.
17+
18+
Compatible with Classic UI forms.
19+
20+
Ensures non-VIP callers do not trigger urgency changes.
21+
22+
Usage Instructions
23+
1. Create the Client Script
24+
25+
Navigate to System Definition → Client Scripts.
26+
27+
Click New to create a client script.
28+
29+
2. Configure the Script
30+
31+
Name: VIP Caller Urgency
32+
33+
Table: incident
34+
35+
Type: onChange
36+
37+
Field: caller_id
38+
39+
Active: Checked

0 commit comments

Comments
 (0)