Forum Discussion
PaddyP1
Oct 24, 2022Copper Contributor
Formatting partially not working in Webpart
Hi all, I have a strange phenomenon with a conditional formatted list view in webparts: The lines in the list view is formatted as follows: - if the column IFC (internal name $IFC) contains YES...
- Oct 26, 2022
PaddyP1 Make sure "Prozess-ID" column is included/shown in list view in web part.
It is a known behavior of JSON formatting, in order to reference the column value in JSON, column should be included in list view.
Also, make sure you are using correct internal name of your SharePoint column, follow: How to find the Internal name of columns in SharePoint Online?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
PaddyP1
Oct 26, 2022Copper Contributor
Thank you, your post led me to the solution...
The thing is, that Prozess-ID is the former Title-column and is available in 3 different forms:
- plain with not hyperlink behind
- with hyperlink to element and menu modify
- with hyperlink to element.
I saw that the hyperlink-version was $LinkTitle, but I was not aware that I had to use $Title for the plain version instead of Prozess-ID. So JSON formatting didn't work though I added the column tho the view.
Works fine now 🙂
ganeshsanap
Oct 26, 2022MVP
PaddyP1 Great, glad it worked for you. JSON formatting supports internal name of column and not display name.
Check: How To Find the internal name of SharePoint column
Please consider giving Like if my post helped you in any way.
- PaddyP1Oct 26, 2022Copper Contributorganeshsanap
Good to know! Especially when fields are named field_1, field_2 internally... not very helpful for clear code!