Jump to content

Archived

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

artdocent

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!

 

Thanks

 

 

post-12222-0-99776800-1408700712_thumb.p

Share this post


Link to post
Share on other sites

Hello Artdocent,

 

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

<script>
window.onload = function(){
try
{
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';
}
}
}
catch(v_ex){}
};
</script>

Let me know if this helps.

Share this post


Link to post
Share on other sites

×
×
  • Create New...