Forum Discussion
DekkerNick1
Jul 22, 2024Copper Contributor
Formatting View in List based on criteria
Hi all, I have a SharePoint list in which I would like to create a formatting view on row-level. I want to achieve that the rows will be visualized red when the Urgency is set to 'Oplossen binnen...
- Jul 22, 2024
DekkerNick1 can you replace the utcNow by the '@now' special string value?
Try something like below
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json", "additionalRowClass": "=if([$Urgentie] == 'Oplossen binnen <6 maanden' && [$Status] != 'Gereed' && (Number(@now) - Number([$Created])) > 15778800000, 'ms-bgColor-redDark', '')" }
Expiscornovus
Jul 22, 2024Iron Contributor
DekkerNick1 can you replace the utcNow by the '@now' special string value?
Try something like below
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
"additionalRowClass": "=if([$Urgentie] == 'Oplossen binnen <6 maanden' && [$Status] != 'Gereed' && (Number(@now) - Number([$Created])) > 15778800000, 'ms-bgColor-redDark', '')"
}
- DekkerNick1Jul 22, 2024Copper ContributorAbsolute legend! This works perfect. 🙂