The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hi @Crystal D. Wood,
Thanks for the documentation, it's amazing.
For RFP date column:
1.Select your RFP date column >column settings >Formatting this column >Advanced mode.
Please paste the following JSON code. Where your logic is the value between dates, so I'm not quite sure if it's >, <, >=, or <=. If it doesn't fit, you can make changes yourself.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"attributes": {
"class": "=if(([$Stage] == '5. Post Subm Activities' || [$Stage] == '6. Closed'),'',if((([$Status]=='Capture'||[$Status]=='Live'||[$Status]=='Temporary Hold')&&[$Deadline]),if([$Deadline]<Date(@now,toDateString()),'sp-css-backgroundColor-BgCoral sp-css-borderColor-CoralFont sp-css-color-CoralFont',if([$Deadline]>Date(@now,toDateString())&&[$Deadline]<=Date((@now+ 7 * 24*60*60*1000),toDateString()),'sp-css-backgroundColor-BgPeach sp-css-borderColor-PeachFont sp-css-color-PeachFont',if([$Deadline]>Date((@now+ 7 * 24*60*60*1000),toDateString())&&[$Deadline]<=Date((@now+ 30 * 24*60*60*1000),toDateString()),'sp-css-backgroundColor-BgGold sp-css-color-GoldFont',if([$Deadline]>Date((@now+ 30 * 24*60*60*1000),toDateString())&&[$Deadline]<=Date((@now+ 90 * 24*60*60*1000),toDateString()),'sp-css-backgroundColor-BgMintGreen sp-css-borderColor-MintGreenFont sp-css-color-MintGreenFont',if([$Deadline]>Date((@now+ 90 * 24*60*60*1000),toDateString())&&[$Deadline]<=Date((@now+ 180 * 24*60*60*1000),toDateString()),'sp-css-backgroundColor-BgCyan sp-css-color-CyanFont','sp-css-backgroundColor-BgLightGray sp-css-borderColor-LightGrayFont sp-css-color-LightGrayFont'))))),'sp-css-backgroundColor-BgLightGray sp-css-borderColor-LightGrayFont sp-css-color-LightGrayFont'))"
},
"txtContent": "[$Deadline.displayValue]"
}
Descriptions:
(@now + 7 * 24 * 60 * 60 * 1000): get the date after calculating today + N days.
Date((@now+ 90 * 24*60*60*1000),toDateString()): get the date that doesn't include the time.
For Submission Date Column:
1.Select your Submission Date column >column settings >Formatting this column >Advanced mode.
2.Please paste the following JSON code. Where your logic is the value between dates, so I'm not quite sure if it's >, <, >=, or <=. If it doesn't fit, you can make changes yourself.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"attributes": {
"class": "=if(([$Stage] == '5. Post Subm Activities' || [$Stage] == '6. Closed'),'',if((([$Status]=='Capture'||[$Status]=='Live'||[$Status]=='Temporary Hold')&&[$SubmissionDate]),if([$SubmissionDate]<Date(@now,toDateString()),'sp-css-backgroundColor-BgCoral sp-css-borderColor-CoralFont sp-css-color-CoralFont',if([$SubmissionDate]>Date(@now,toDateString())&&[$SubmissionDate]<=Date((@now+ 7 * 24*60*60*1000),toDateString()),'sp-css-backgroundColor-BgPeach sp-css-borderColor-PeachFont sp-css-color-PeachFont',if([$SubmissionDate]>Date((@now+ 7 * 24*60*60*1000),toDateString())&&[$SubmissionDate]<=Date((@now+ 30 * 24*60*60*1000),toDateString()),'sp-css-backgroundColor-BgGold sp-css-color-GoldFont',if([$SubmissionDate]>Date((@now+ 30 * 24*60*60*1000),toDateString())&&[$SubmissionDate]<=Date((@now+ 90 * 24*60*60*1000),toDateString()),'sp-css-backgroundColor-BgMintGreen sp-css-borderColor-MintGreenFont sp-css-color-MintGreenFont',if([$SubmissionDate]>Date((@now+ 90 * 24*60*60*1000),toDateString())&&[$SubmissionDate]<=Date((@now+ 180 * 24*60*60*1000),toDateString()),'sp-css-backgroundColor-BgCyan sp-css-color-CyanFont','sp-css-backgroundColor-BgLightGray sp-css-borderColor-LightGrayFont sp-css-color-LightGrayFont'))))),'sp-css-backgroundColor-BgLightGray sp-css-borderColor-LightGrayFont sp-css-color-LightGrayFont'))"
},
"txtContent": "[$SubmissionDate.displayValue]"
}
For DaysSinceSubmitted column. I don't quite understand the logic and formatting requirements of this column, could you please provide more details.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.