Show Description/Comment History in Display Form of SharePoint Designer 2007

Hey Guys,

Yeah, it seems little weird for me to go back working on SharePoint (or may be MOSS) 2007 but it was for a while  🙂

So, when you have a requirement to showing Description/Comments History in your display form, for which, the field was multi line text, what would you do?


For Description, it’s pretty straight forward!!

<xsl:value-of select=”@Comments” />

But for Comments History, in my edit page, I was able to see the Comments History like this:


In HTML Code, I show something like below,

<xsl:value-of select=”@Comments” />

but nothing comes under the Comments Text in my Display form!!  😦

I went and edited the Edit Form where it does shows the comment history, so how to show the comment history in Display form??

It’s simple (looks simple when you know it 🙂 )

Just Changed the below code,

<xsl:value-of select=”@Comments” />


<SharePoint:AppendOnlyHistory FieldName=”Comments” runat=”server” ControlMode=”Display” ItemId=”{@ID}”/>

That’s it.

Thanks & Enjoy!! 🙂


Tags: , , , , , , , , ,

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: