Skip to content

Commit c52b9cc

Browse files
authored
Create Add Field Decorations On Incident
Adds visual decorations (icons and colors) to key fields on the Incident form to enhance user visibility and form usability. Specifically: Adds a blue star icon to the Caller field to highlight important contact information. Adds a yellow lightbulb icon to the Category field to indicate classification details. This onLoad client script improves UI clarity and user experience when viewing or editing incidents.
1 parent 9a8fe4f commit c52b9cc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//Add Field Decorations On Incident
2+
function onLoad() {
3+
//Type appropriate comment here, and begin script below
4+
g_form.addDecoration('caller_id', 'icon-star', 'Mark as Favorite', 'color-blue');
5+
g_form.addDecoration('category' , 'icon-lightbulb' , 'icon-lightbulb' , 'color-yellow');
6+
7+
}

0 commit comments

Comments
 (0)