From a9655ad8e877f319b375e7a1eb9f2509fe50dc92 Mon Sep 17 00:00:00 2001 From: GHSayak25 <59216790+GHSayak25@users.noreply.github.com> Date: Thu, 2 Oct 2025 18:09:34 +0530 Subject: [PATCH 1/2] Apply Field Style on List type field based on condition If one of the reviewers is inactive, highlight the corresponding column in list view. --- .../Server Side/MarkInactiveUsersonList/README.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Server-Side Components/Server Side/MarkInactiveUsersonList/README.md diff --git a/Server-Side Components/Server Side/MarkInactiveUsersonList/README.md b/Server-Side Components/Server Side/MarkInactiveUsersonList/README.md new file mode 100644 index 0000000000..99dfd0ff2f --- /dev/null +++ b/Server-Side Components/Server Side/MarkInactiveUsersonList/README.md @@ -0,0 +1,6 @@ +There is a list type field named 'Reviewers' on Policy records. +On the list view of Policies, we want to highlight with field styles, where any of the user listed under Reviewers is inactive. +In the screenshot attached below, Daniel Zill is inactive user, and if he is present in Reviewers, the respective column value is applied with defined field styles. +image +image + From 7bf7688f901309809f949de9fd7d4b2d74077c7d Mon Sep 17 00:00:00 2001 From: GHSayak25 <59216790+GHSayak25@users.noreply.github.com> Date: Thu, 2 Oct 2025 18:19:47 +0530 Subject: [PATCH 2/2] Apply Field Style on Reviewers if anyone is inactive --- .../fieldStyleforListfields.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Server-Side Components/Server Side/MarkInactiveUsersonList/fieldStyleforListfields.js diff --git a/Server-Side Components/Server Side/MarkInactiveUsersonList/fieldStyleforListfields.js b/Server-Side Components/Server Side/MarkInactiveUsersonList/fieldStyleforListfields.js new file mode 100644 index 0000000000..f2baed65a8 --- /dev/null +++ b/Server-Side Components/Server Side/MarkInactiveUsersonList/fieldStyleforListfields.js @@ -0,0 +1,18 @@ +//The below code followed by "javascript:", inside 'Value' field for the List type Reviewers field's Style record will do the condition check. + +var answer = false; +var arr=[]; +arr = current.reviewers.split(','); +for(i=0; i