From c52b9ccc949a37d9f59b469096fb47aff97bea7a Mon Sep 17 00:00:00 2001 From: SUMANTH GOLLA <113332783+sumanth1710@users.noreply.github.com> Date: Mon, 6 Oct 2025 13:39:41 +0530 Subject: [PATCH 1/3] 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. --- .../Client Scripts/Add Field Decorations On Incident | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Client-Side Components/Client Scripts/Add Field Decorations On Incident 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'); + +} From 0df8adac460761ba81d5c3728eb4c7db7386d641 Mon Sep 17 00:00:00 2001 From: SUMANTH GOLLA <113332783+sumanth1710@users.noreply.github.com> Date: Sun, 26 Oct 2025 16:18:46 +0530 Subject: [PATCH 2/3] Create IncFieldDecorator.js --- .../Catalog Client Script/Readme.md/IncFieldDecorator.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Client-Side Components/Catalog Client Script/Readme.md/IncFieldDecorator.js 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'); + +} From f848045e3d644c6311cf2bf1d54b38906a19087b Mon Sep 17 00:00:00 2001 From: SUMANTH GOLLA <113332783+sumanth1710@users.noreply.github.com> Date: Sun, 26 Oct 2025 16:19:41 +0530 Subject: [PATCH 3/3] Create Readme.md --- .../Catalog Client Script/Readme.md/Readme.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Client-Side Components/Catalog Client Script/Readme.md/Readme.md 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).