ShowInDisplayForm Setting in Sharepoint Online

New Contributor


My client uses extensively to add files to SharePoint from their mailbox. But for some fields, the function "view properties" of, does not show any fields. The site we use to "provisioned" from a template site. 

I have checked this with and the reason is because takes into account the "ShowInDisplayForm" properties of Sharepoint. And indeed I have found this property set to "False" in the SchemaXml of these fields. 

In the UI, this property is not configurable, but I have tried setting it with powershell. You can find some code samples below. For some fields, setting the property will show them in For some fields it automatically reverts back to false.


Code snippets:



- Does anyone have an idea how to set the "ShowInDisplayForm" setting for all fields in a sharepoint site?



Kind regards,





0 Replies