Thursday, October 3, 2013

SharePoint 2010 Custom Display Form Comments History not showing

In this post I will explain one of my experience when creating SharePoint custom list display form.

For one list we have version history enabled with one field called “Comments” as multiline with append text enabled.

After creating the custom form the comments will display as

<xsl: select=”@Comments” value-of disable-output-escaping=”yes” />

and comments history was not visible.

After replacing the above line with

<SharePoint:AppendOnlyHistory runat=”server” ControlMode=”Display” FieldName=”Comments” ItemId=”{@ID}”  />
All details are showing perfectly.

No comments:

Post a Comment