Forum Discussion
SharePoint List color rows based upon date ranges relative to the Due Date
- Jan 12, 2021
For SharePoint 2013, you can use Client Side Rendering (CSR) which represents a rendering engine for list views.
You can refer the code samples given in below links and modify it according to your conditions:
- How to highlight the row in red if expiration date is passed for SharePoint 2013 list
- SharePoint 2013 on-prem conditional formatting row by dueDate
Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Are you using SharePoint Online and modern lists experience? For modern lists experience view formatting is done with JSON.
- Joseph_ButlerJan 11, 2021Copper Contributor
Matti PaukkonenI am not. We are using SharePoint 2013 on-premise
- ganeshsanapJan 12, 2021MVP
For SharePoint 2013, you can use Client Side Rendering (CSR) which represents a rendering engine for list views.
You can refer the code samples given in below links and modify it according to your conditions:
- How to highlight the row in red if expiration date is passed for SharePoint 2013 list
- SharePoint 2013 on-prem conditional formatting row by dueDate
Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- Joseph_ButlerJan 13, 2021Copper Contributor
ganeshsanapIt appears the the code offered in the links provided allow me to color code items,
However, I am not finding the code needed in order to complete the "else if" regarding date ranges.
I have done extensive searches on Google and just not seeing the code needed. Any ideas?