- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 03:18 AM
Help me do this please :
Inform operators that the impacted Service is critical:
When the “Impacted Service” is “Critical”, the name of the service is displayed in Red
If the impacted service is “Medium Criticality” the service name is orange
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 03:41 AM
Hello @rampage
Use this for your reference-
==========================CLIENT SCRIPTS============================
Table - Incident
Type - OnChange of Category Field
Scripts -
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (newValue === '') {
control.style = 'background-color:';
return;
}
switch (newValue) {
case "inquiry":
control.style = 'background-color: green';
break;
case "software":
control.style = 'background-color: orange';
break;
case "hardware":
control.style = 'background-color: yellow';
break;
case "database":
control.style = 'background-color: brown';
break;
case "network":
control.style = 'background-color: red';
break;
}
//Type appropriate comment here, and begin script below
}
If this helped you in any way, please mark this as BOOKMARK, SUBSCRIBE & HELPFUL & Accept Solution.
Best Regards,
Harsh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 03:23 AM
Hi,
You need Field style. Give doc link a check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 03:41 AM
Hello @rampage
Use this for your reference-
==========================CLIENT SCRIPTS============================
Table - Incident
Type - OnChange of Category Field
Scripts -
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (newValue === '') {
control.style = 'background-color:';
return;
}
switch (newValue) {
case "inquiry":
control.style = 'background-color: green';
break;
case "software":
control.style = 'background-color: orange';
break;
case "hardware":
control.style = 'background-color: yellow';
break;
case "database":
control.style = 'background-color: brown';
break;
case "network":
control.style = 'background-color: red';
break;
}
//Type appropriate comment here, and begin script below
}
If this helped you in any way, please mark this as BOOKMARK, SUBSCRIBE & HELPFUL & Accept Solution.
Best Regards,
Harsh