File tree Expand file tree Collapse file tree
Server-Side Components/Server Side/MarkInactiveUsersonList Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11//The below code followed by "javascript:", inside 'Value' field for the List type Reviewers field's Style record will do the condition check.
2-
3- var answer = false ;
4- var arr = [ ] ;
5- arr = current . reviewers . split ( ',' ) ;
2+ var answer = false ;
3+ var arr = [ ] ;
4+ arr = current . reviewers . split ( ',' ) ;
65for ( i = 0 ; i < arr . length ; i ++ ) {
76 var gr = new GlideRecord ( 'sys_user' ) ;
87 gr . addQuery ( 'sys_id' , arr [ i ] ) ;
9- gr . query ( ) ;
10- if ( gr . next ( ) ) {
11- if ( gr . active == false ) {
8+ gr . query ( ) ;
9+ if ( gr . next ( ) ) {
10+ if ( gr . active == false ) {
1211 answer = true ;
1312 }
1413 }
15- }
14+ }
1615answer ;
1716
1817//The Style field then must be populated with the style we want to apply. I have applied "background-color: blue;" "text-decoration:line-through;"
18+ background - color : blue ;
19+ text - decoration :line - through ;
You can’t perform that action at this time.
0 commit comments