Skip to content

Commit 6f1bdbf

Browse files
Change Incident Number Lable color based on priority (#2621)
* Create readme.md * Create test.js * Delete Client-Side Components/Client Scripts/Test directory * Create readme.md * Create Script.js * Update readme.md * Update Script.js * Update readme.md
1 parent 5b867bf commit 6f1bdbf

File tree

2 files changed

+21
-0
lines changed
  • Client-Side Components/Client Scripts/Change incident Number label color based on priority

2 files changed

+21
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function onLoad ()
2+
{
3+
var aPriority = g_form.getValue('priority');
4+
var label = g_form.getLable('number');
5+
label.style.backgroundColor = "lightblue";
6+
if(aPriority==1)
7+
{
8+
label.style.color = "red";
9+
}
10+
else if (aPriority==2)
11+
{
12+
label.style.color = "yellow";
13+
}
14+
else
15+
{
16+
label.style.color = "blue";
17+
}
18+
}
19+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Write Client Script
2+
Change Incident Number Lable color based on priority

0 commit comments

Comments
 (0)