Hi @Richard Post ,
Welcome to Q&A Forum!
According to my understanding, your needs are:
If the RFS is later than the CCD, the CCD is displayed in green and Dislike is displayed;
If the RFS is earlier than the CCD, the CCD is displayed in red and shows Like;
For example: CCD is 2021-12-06,
If the RFS is 2021-12-07, the CCD is green, and the RFS mark is Dislike
If the RFS is 2021-12-05, the CCD is red, and the RFS mark is Like
Please use the below JSON formatting for the [CCD Date] column:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"attributes": {
"class": "=if(@currentField > [$RFSDate],'sp-field-severity--severeWarning', 'sp-field-severity--good')"
},
"children": [
{
"elmType": "span",
"style": {
"display": "inline-block",
"padding": "0 4px"
},
"attributes": {
"iconName": "=if(@currentField >= [$RFSDate],'Like','Dislike')"
}
},
{
"elmType": "span",
"txtContent": "@currentField"
}
]
}
Thanks,
Echo Du
================================
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.
