diff --git a/Client-Side Components/Catalog Client Script/Readme.md/IncFieldDecorator.js b/Client-Side Components/Catalog Client Script/Readme.md/IncFieldDecorator.js new file mode 100644 index 0000000000..b8240dca1e --- /dev/null +++ b/Client-Side Components/Catalog Client Script/Readme.md/IncFieldDecorator.js @@ -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'); + +} diff --git a/Client-Side Components/Catalog Client Script/Readme.md/Readme.md b/Client-Side Components/Catalog Client Script/Readme.md/Readme.md new file mode 100644 index 0000000000..2775209f61 --- /dev/null +++ b/Client-Side Components/Catalog Client Script/Readme.md/Readme.md @@ -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). diff --git a/Client-Side Components/Client Scripts/Add Field Decorations On Incident b/Client-Side Components/Client Scripts/Add Field Decorations On Incident new file mode 100644 index 0000000000..47fe5fd3af --- /dev/null +++ b/Client-Side Components/Client Scripts/Add Field Decorations On Incident @@ -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'); + +}