Jump to content


This topic is now archived and is closed to further replies.


Change Color Of Field In Calendar View

Recommended Posts

I have set up a calendar report with multiple records on each date. Some of the entries have pending status, others are scheduled. I would like the pending records to have the status field's font color as red.


This would make it much faster to find lessons that need to be scheduled. I cannot schedule the same lesson at the same time for different teachers, so there is a lot of juggling involved.  The calendar view is critical so we can easily see the other lessons for the same day and week.


The field name is LessonStatus, the value of field is either archived, cancelled, scheduled or pending


Any help would be appreciated!






Share this post

Link to post
Share on other sites

Hello Artdocent,


Insert this code into the Footer of the Calendar result page:

window.onload = function(){
var v_nodes = document.querySelectorAll('span[class*="cbResultSetData"]');
for(var v_i= 0 ; v_i < v_nodes .length; v_i++){
if(v_nodes.item(v_i).innerHTML.search('pending')!= -1){
v_nodes.item(v_i).style.color = '#f00';

Let me know if this helps.

Share this post

Link to post
Share on other sites

  • Create New...