Forum Discussion

Joseph_Butler's avatar
Joseph_Butler
Copper Contributor
Jan 06, 2021
Solved

SharePoint List color rows based upon date ranges relative to the Due Date

I would like to know how to color the rows on my SharePoint list.

 

I have a Due Date column in my list

 

Here is what I am looking to do:

 

If Today's date is within 14 days of the Due Date then the entire row should be the color red

If Today's date is between 15 days and 21 Days out from the Due Date, then the entire row color should be orange

If Today's date is between 21 days and 30 days out from the Due Date, then the entire row should be yellow

If Today's date is 31 days or more out from the Due Date, then the entire row should be Green

 

I am assuming I will be using Client Side Rendering (I don't know I am guessing).

 

1. What files will I need to create (a .txt file or a .txt file that is converted to a .js file?

2. Will I have to use Content Editor Web Part to refernece the .txt or .js file?

7 Replies

Resources