Customising A SharePoint Display Form To Remove A Field

Clicking View Properties on a SharePoint list item loads a display form which shows all the list columns and their values.  I needed to remove one of the list columns from a display form and in this post I’ll show you how I did it.  I’m going to remove the specific image column in the screenshot below.
HideField1

In SharePoint Designer open the list you want to customise.  In the Forms section click New.

HideField2

Provide a file name and select the form type you want to create.  Here I’m creating a display item form.  I’ve chosen to set the new form as the default display form as I want to override the default form.

HideField3

In the Forms section right-click on the form and select Edit File in Advanced Mode.

HideField4

Switch to code view and select the HTML for the row you want to remove. Each row is displayed withing <tr></tr> table row tags.  In the screenshot below I’ve selected the row which displays the jurisdiction column.  Once you’ve selected the correct row click delete.

HideField5

Save your changes.  When you click on the list item and select view properties you’ll see that the row has been removed.

HideField6

If your list contains attachments please be aware of the following bug whereby attachments aren’t displayed in the custom display form.  See the KB article for more information and a workaround.

“SharePoint Designer created display forms do not display attachments when present.”

http://support.microsoft.com/kb/2590041

1 thought on “Customising A SharePoint Display Form To Remove A Field

  1. Pingback: Customising A SharePoint Display Form To Remove A Field | Viswanathan Lakshmanan

Leave a comment