Skip to content

Commit 6fb994c

Browse files
Create Readme.md
1 parent c72b31e commit 6fb994c

File tree

1 file changed

+32
-0
lines changed
  • Client-Side Components/Client Scripts/Change Label of Field

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Dynamic Field Label Change in ServiceNow
2+
Overview
3+
4+
This script is created for the Incident table to change the Description field label when the Priority field value changes.
5+
6+
When the Priority is set to 1 (Critical), the Description label becomes
7+
“Describe the critical issue in detail” to help users give more clear information.
8+
For all other priorities, it goes back to “Description.”
9+
10+
Setup Steps:
11+
12+
Go to System Definition → Client Scripts → New
13+
14+
Fill in the following details:
15+
16+
Name: Change Description Label Based on Priority
17+
18+
Table: Incident
19+
20+
UI Type: All
21+
22+
Type: onChange
23+
24+
Field name: Priority
25+
26+
Notes
27+
28+
Works only on the Incident form when the Priority field is changed.
29+
30+
The label updates immediately without reloading the form.
31+
32+
You can change the label text to fit your own use case.

0 commit comments

Comments
 (0)