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 + 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