Search code examples
sharepointlistsharepoint-2007

How to change the color of a task list row when the due date comes nearer


I have a task list and it has a column called Due Date. So when your Due Date draws new, the row changes to the color orange, and when the Due Date is passed, then it changes to red. So it is done dynamically comparing the Current Date to Due Date.

Has anyone accomplished this kind of solution?


Solution

  • I'd recommend the use of SharePoint Designer to build a Data View Web Part over using JavaScript (which is reliant on being injected via a CEWP, or via the masterpage).

    Here's a tutorial for creating conditional formatting rules in a DVWP, which may prove helpful.

    http://blog-sharepoint.blogspot.com/2009/05/data-view-conditional-formatting-using.html