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..635332b2d7 --- /dev/null +++ b/Server-Side Components/Server Side/MarkInactiveUsersonList/README.md @@ -0,0 +1,10 @@ +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 + +The condition to check if any inactive user is present in Reviewers must be written on 'Value' (actual Server script) and the styles to applied must be mentioned on 'Style'. +Refer below screenshot: +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..40ce988643 --- /dev/null +++ b/Server-Side Components/Server Side/MarkInactiveUsersonList/fieldStyleforListfields.js @@ -0,0 +1,19 @@ +//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