0

I am trying to customize the DispForm.aspx Display form in an announcement list but as soon as I try to delte the WebPart and add the new Custom form using SharePoint Desginer 2007, the link to view an item on the list goes to root.

Example the correct URL for the item is:
http://serverx/Site1/Lists/Announcements/DispForm.aspx?ID=2&Source=serverx%2FSit1%2FLists%2FAnnouncements%2FAllItems%2Easpx

After I edit the aspx page it goes here:
http://serverx/?ID=2

I followed the instructionsshown here:
http://www.risetime.com/blog/archive/2009/06/03/create-a-custom-newform-aspx-for-a-sharepoint-list.aspx

Rick
  • 2,288
  • 18
  • 66
  • 98

3 Answers3

1

Never delete the default list form in a SharePoint list. See Link on how to recover.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
zincorp
  • 3,284
  • 1
  • 15
  • 18
1

I usually just hide the form control and add a custom one to the same page, this is the least buggy way

Vladi Gubler
  • 2,458
  • 1
  • 13
  • 15
0

Are you sure that you followed the step where you right click on DispForm.aspx and click "New from Existing Page"?

Also, after customizing your page, you have to change the properties of the list to use your new DispForm.

Kit Menke
  • 7,046
  • 1
  • 32
  • 54
  • I modified the same aspx file (I made a backup just in case). Right clicking the list I access the Supporting Files tab and the "Display item form" is pointing to the correct file. The list is an announcement. The "Content type specific forms" opttion is set to "Announcement". – Rick Nov 12 '10 at 12:10