Forum Discussion
SharePoint List column formatting - CardProps not working if input column is hidden
- Feb 24, 2021
This is the expected behavior in SharePoint online modern experience.
In order to add the reference to the column in JSON (column/view) formatting, you have to show that column in the list view (as you are referencing it using [$Description]). Hiding the column from list view will not work in this case.
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.
Dear ganeshsanap and Mehmet Demirörs,
Do you know if there is an existing uservoice entry to allow using hidden fields? If not what about inserting it? Which section of https://sharepoint.uservoice.com/ would be better? I suppose SharePoint Dev Platform but I'm not sure.
Regards
Gianmaria
In the column settings I chose calculated value to make currentfield value same a hidden column value. This way I could show content in a cardprop even if the value where the content is coming from is hidden. Hope this may help you as well.