Hello,
I am having trouble with view formatting. Here is my current situation:
- I have a List with a variety of columns (Yes/no, single line, date, choice)
- I have applied column formatting to several columns, no problem here
Below is the code I am using, which I took from the official documentation page.
I of course altered $DueDate to match one of my existing columns that also has a date in it.
When saving or previewing nothing changes. I've tried saving and refreshing the page, but nothing changes.
For good measure, I replaced the "if false" part of the equation to match the "if true" part (to see if my formula was always coming back false). No change.
Here is the original code:
{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"additionalRowClass": "=if([$DueDate] <= @now, 'sp-field-severity--severeWarning', '')"
}
Here
is my modified code:
{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"additionalRowClass": "=if([$Job Start] <= @now, 'sp-field-severity--severeWarning', 'sp-field-severity--severeWarning')"
}
Any help
is appreciated with finding out what is preventing view formatting from working.
Thanks!