artdocent Posted August 22, 2014 Report Share Posted August 22, 2014 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 Quote Link to comment Share on other sites More sharing options...
ShWolf Posted August 29, 2014 Report Share Posted August 29, 2014 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. Quote Link to comment Share on other sites More sharing options...
Kurumi Posted August 20, 2022 Report Share Posted August 20, 2022 Hi! Just an update on this, Caspio has a Tech tip called Color-Coding in DataPages. To know more on how to implement it in the DataPage, you can check it here: https://howto.caspio.com/tech-tips-and-articles/advanced-customizations/color-coding-in-datapages/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.