Forum Discussion
Paul Rudy
May 26, 2020Copper Contributor
SharePoint JSON View with folders
I am trying to use the Document library sample at https://github.com/pnp/sp-dev-list-formatting/tree/master/view-samples/document-library to create a custom view for a policy library. What I want h...
sacker95
Dec 22, 2020Copper Contributor
Paul Rudy Hi.. did you ever find out ? I'd like the same behaviour 🙂
- Paul RudyDec 22, 2020Copper Contributor
sacker95 What I ended up doing is adding is adding lines to check for the content type of the document library and either showing or hiding children depending upon whether or not I am showing the document set:
"style": { "display": "=if([$ContentType] == 'Policy Documents', '','none')" }
or
"style": { "display": "=if([$ContentType] == 'Policy Documents', 'none','')" },