Changing SharePoint 2010 list form template without re-creating the list

Table of Contents

Here is the scenario: you have few lists in your portal that`s already deployed in production environment and contain data. Here you realize that you need to adjust one of the lists` rendering template to remove some information on a Displayor Edit form.  You can`t change the schema.xml of the list because you will have to recreate the it and your customer will loose all the data.

Assuming you already have a rendering template ready or have just deplo0yed it -- here is one quick way to rescue the day:

1. Open site in SharePoint Designer.

2. Click Lists and Libraries.

3. Click on the list you`d like to change the template on (Comments in my example)

4. Select the View of your interest, in my case I`ll be changing Display Form (ViewComments.aspx in case of Comments list)

5. The designer will load the view. Make sure you pick a split view to see visual and code of the form.

6. Click on the form as shown below, that way SharePoint Designer will show the piece of code representing the display form webpart.
7. In the “code” window find *TemplateName *in the highlighted section and find the “ListForm” property in that section and replace it with the rendering template that you have provisioned to the site.

That`s it, when done, just save the form and refresh the actual form page in your browser – the new form will be picked up right away.

Enjoy!

http://www.sharemuch.com/2010/03/06/dynamically-changing-sharepoint-2010-list-form-rendering-templates/

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. Hosted generously by CustomWare