SharePoint: why are my custom content type forms empty?

Okay, this is the hit of the month for me. Well, we had to use custom forms with some content types. Everything went fine until all those custom forms showed up empty. No errors on screen, no errors in log files, no errors in event log. Also diagnostic messages were not helpful. But … solution was simple.

To get some idea about those forms check out an article called Creating Custom Form Templates from MSDN Library. If you are already familiar with those forms then you should know that there are templates like this:


<SharePoint:RenderingTemplate ID="AssignmentEditForm" runat="server">
  <
Template
>
    <!
—Template Body --
>
  </
Template
>
</
SharePoint:RenderingTemplate
>

On MSDN article referred above you can see how those forms are bound to content type definitions. Now there is a little trick we discovered. You must have all those forms defined in user controls otherwise custom forms doesn’t show up. You can see just a blank form with no controls.

It seems to affect only the content types that came with same feature. Controls from some other feature will still work. To help other guys out with these time wasting horror I end this blog entry with something that robots like to eat.

SharePoint content type custom form empty blank problem


3 thoughts on “SharePoint: why are my custom content type forms empty?

Leave a Reply

Your email address will not be published. Required fields are marked *