Skip to content

Commit 6d41c32

Browse files
Update Script.js
1 parent 878fbef commit 6d41c32

File tree

1 file changed

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

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
11
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+

0 commit comments

Comments
 (0)