Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Highlight change calendar items based on 2 different fields' values

RitaS
Tera Guru

I've been asked to base highlighting of change calendar items on change type which is working, but I also need to highlight critical priority changes on the same display, regardless of change type.  Is this possible?  I'm using the OOTB change calendar, maybe I need to create a custom one? 

 

UPDATE: Never mind, found that I can insert Javascript condition in the value field of the Field Style record, working now.

1 ACCEPTED SOLUTION

To resolve this I updated the Field Style record for the change_request table, setting the field name to type but then adding this for value: 

javascript: if ((current.type == 'emergency')||(current.priority==1)) {true;} else {false;}

 

RitaS_0-1741023751131.png

 

 

Now my change calendar highlights emergency changes and critical priority changes of any change type in the same color.

View solution in original post

2 REPLIES 2

Vasantharajan N
Tera Sage

@RitaS - Glad that you found a solution for your problem. So please close the thread by posting the solution in detail which may help other users in the community. 


Thanks & Regards,
Vasanth

To resolve this I updated the Field Style record for the change_request table, setting the field name to type but then adding this for value: 

javascript: if ((current.type == 'emergency')||(current.priority==1)) {true;} else {false;}

 

RitaS_0-1741023751131.png

 

 

Now my change calendar highlights emergency changes and critical priority changes of any change type in the same color.