I have several content types based on Folder with a couple of fields.
Some of them are experiencing some strange behavior.
The fields are there, and the data is being saved, because I can see them on the list and I can add them to the view fields, but I cannot see them in the display, edit or new forms.
I have compared the schema from a working CT and a non working CT and the difference is the part below.
ShowInDisplayForm and so on are set to
True on all areas.
<XmlDocuments> <XmlDocument NamespaceURI="Microsoft.SharePoint.Taxonomy.ContentTypeSync"> <SharedContentType xmlns="Microsoft.SharePoint.Taxonomy.ContentTypeSync" SourceId="de887f88-4a24-49db-a549-4c3cbb517053"ContentTypeId="0x012000C4E4F4EFD38B4D22A27980EC6169922F00041800E9838240F28E71F34D72B255C8" PreviousValue="false"/> </XmlDocument> <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"> <FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"> <Display>ListForm</Display> <Edit>ListForm</Edit> <New>ListForm</New> </FormTemplates> </XmlDocument> </XmlDocuments>
In my schema I just have the content type id, name and field refs. Not sure if I need anything else like the above, and I wonder why it works for some content types just not others (perhaps the others were manually added).
Creating a new form for the library/content type shows the missing fields.
I would like to fix the underlying issue, rather than creating new forms, also because Upload.aspx is experiencing the same behavior and since I am in a position where I can delete the libraries and content types and redeploy the solution.