Skip to content

Commit ae47ab0

Browse files
authored
Zurich - Updated info messages
Display different information messages that is released as part of Zurich release.
1 parent ceaf255 commit ae47ab0

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

  • Client-Side Components/Client Scripts/Zurich - Upgraded info messages
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
function onLoad() {
2+
var state = g_form.getValue('state'); //Get value of 'state' field
3+
4+
if (state != '6' && state != '7' && state != '8') {
5+
var priority = g_form.getValue('priority'); // Get value of 'priority' field
6+
switch (priority) {
7+
case '1':
8+
g_form.addErrorMessage('Critical Incident');
9+
break;
10+
case '2':
11+
g_form.addHighMessage('High Priority Incident'); // addHighMessage() method will display message in orange color
12+
break;
13+
case '3':
14+
g_form.addModerateMessage('Medium Priority Incident'); // addModerateMessage() method will display message in purple color
15+
break;
16+
case '4':
17+
g_form.addLowMessage('Low Priority Incident'); // addLowMessage() method will display message in grey color
18+
break;
19+
}
20+
} else if (state == '6' || state == '7') {
21+
g_form.addSuccessMessage('Incident closed'); // addSuccessMessage() method will display message in green color
22+
}
23+
}

0 commit comments

Comments
 (0)