Forum Discussion
Mike Insch
Feb 20, 2018Copper Contributor
Column formatting not showing when view shown in a List Web Part (Modern Page and List)
I have a list with a JSON Column Formatter applied, the column format works fine when viewing the list directly, however when I'm using the List Web Part (still appears to be a preview part), the col...
Toeun Chiet
Jun 12, 2018Copper Contributor
Hi Mike,
We are running into the same issue as well when adding a list using JSON green-yellow-red status column directly as a web part.
Don't if this will meet your requirements but the workaround I've implemented is utilizing Page Viewer (see below for the procedure I went thru), which seems to work fine for now. Hopefully Microsoft will support JSON formatter in web parts in the future.
Procedure
- Make note of the URL for your SharePoint list.
- Go to your SharePoint page you want to add the web part and select Edit page.
- Click on the Insert tab > Web Part > Media and Content > Page Viewer.
- In the Page Viewer web part, select Edit Web Part.
- In the Page Viewer dialog, make sure Web Page is selected, than enter the URL noted from Step 1 into the field provided.
- Click Apply.
NOTE: You may need place a fixed height or width (in Appearances section) accordingly on the web part as well.