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/5] 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/5] 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/5] 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). From c517dd5ddcb7a497565c9ced925425f1aeff7f92 Mon Sep 17 00:00:00 2001 From: SUMANTH GOLLA <113332783+sumanth1710@users.noreply.github.com> Date: Sun, 26 Oct 2025 16:33:32 +0530 Subject: [PATCH 4/5] Create Readme.md --- .../Client Scripts/Populate Caller Manger/Readme.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Client-Side Components/Client Scripts/Populate Caller Manger/Readme.md diff --git a/Client-Side Components/Client Scripts/Populate Caller Manger/Readme.md b/Client-Side Components/Client Scripts/Populate Caller Manger/Readme.md new file mode 100644 index 0000000000..efaae8d145 --- /dev/null +++ b/Client-Side Components/Client Scripts/Populate Caller Manger/Readme.md @@ -0,0 +1,7 @@ +Script type : OnChange Client script + + +Description: +On change on caller the manager field in the incidnet form will populate caller manger using the cleint script. + + From 4c16d96ed4c17b144f1626f6f99a57b14bab6b20 Mon Sep 17 00:00:00 2001 From: SUMANTH GOLLA <113332783+sumanth1710@users.noreply.github.com> Date: Sun, 26 Oct 2025 16:34:21 +0530 Subject: [PATCH 5/5] Create PopulateCaller.js --- .../Populate Caller Manger/PopulateCaller.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Client-Side Components/Client Scripts/Populate Caller Manger/PopulateCaller.js diff --git a/Client-Side Components/Client Scripts/Populate Caller Manger/PopulateCaller.js b/Client-Side Components/Client Scripts/Populate Caller Manger/PopulateCaller.js new file mode 100644 index 0000000000..d935bb61a0 --- /dev/null +++ b/Client-Side Components/Client Scripts/Populate Caller Manger/PopulateCaller.js @@ -0,0 +1,10 @@ +function onChange(control, oldValue, newValue, isLoading, isTemplate) { + if (isLoading || newValue === '') { + return; + } + + //Type appropriate comment here, and begin script below + var manager= g_user.manager; + g_form.setValue('manger',manager); + +}