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...
RonaldP
Copper Contributor
Hi! I read the issue was resolved but I do not manage to see the column formatting in the webpart that I inserted into the starpage. My JSON code in the formatting part of the column:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "img",
"attributes": {
"src": "='https://xxxxxxx.sharepoint.com/sites/intranet/Ledenfotos/'+ @currentField + '.jpg'"
},
"style": {
"width": "60px"
}
}
This works fine in the normal listview but when inserted as a webpart it just shows the content of the field instead of the picture.
M-B_93
Feb 06, 2019Copper Contributor
It doesn't work for me, too.