Share via

Sharepoint View Formatting Doesn't Work

Anonymous
2018-11-16T18:01:32+00:00

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!

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2018-11-17T02:23:42+00:00

Hi Josh,

Please check the following articles to format list view with JSON, see if this helps.

Formatting list views with JSON

Use column formatting to customize SharePoint

If the issue persists, I’ll suggest you create a new thread in our Developer forum. This is a specific forum related to customization issues in SharePoint.

We appreciate your understanding.

Regards,

Neha

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful