Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function onLoad() {
//Type appropriate comment here, and begin script below
g_form.addDecoration('caller_id', 'icon-star', 'Mark as Favorite', 'color-blue');
g_form.addDecoration('category' , 'icon-lightbulb' , 'icon-lightbulb' , 'color-yellow');

}
14 changes: 14 additions & 0 deletions Client-Side Components/Catalog Client Script/Readme.md/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Script Type:

Client Script — onLoad()

Description:

This script adds visual decorations (icons) to specific fields when a form is loaded.
Decorations help highlight or draw attention to important fields for end users.

Functionality:

Adds a blue star icon next to the Caller field with a tooltip labeled “Mark as Favorite”.

Adds a yellow lightbulb icon next to the Category field with a tooltip labeled “icon-lightbulb” (can be customized).
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//Add Field Decorations On Incident
function onLoad() {
//Type appropriate comment here, and begin script below
g_form.addDecoration('caller_id', 'icon-star', 'Mark as Favorite', 'color-blue');
g_form.addDecoration('category' , 'icon-lightbulb' , 'icon-lightbulb' , 'color-yellow');

}
Loading