Relpacing the default forms (NewForm, EditForm, DispForm) of a SharePoint list is essential when ever you want the form to be customized using ASP.net to provide additional functionality. So how to do it. Its simple with the use of SharePoint Designer. Follow these simple steps.
- Open the site in the SharePoint designer.
- In the lists folder navigate to the list you want to add the custom form.
- Copy the form(NewForm/EditForm/DispForm) and paste it in the same folder.
- Rename it to something like CustForm.aspx.
- Now open the file, in the default DataView Webpart find this tags <IsVisible>true</IsVisible>
- Make the value to false which will hide that webpart.
- Now add a Custom List Form or a webpart that you need in the page.
- Now we have to replace this custom page as our list’s default page.
- In the Folder List navigation panel, right click the list and go to Properties.
- In Supporting Files tab in Content type specific forms drop down select the appropriate content type for your list.
- And here you can change the default form by browsing to the custom form we have created.
This seems involving little more steps than like creating a webpart page and deploying a webpart instead. But the advantage is that the query string values which we get in the default forms (NewForm/EditForm/DispForm) will available in this form also. Also the behaviour of the list where the edit item, display item and new item links in the list work as it is.






[...] 26, 2010 by chanakya01 I have tried customizing the DispForm.aspx and once I view the form in browser i found the people editor values are not displaying properly. [...]
Hey Chanakya ,
How do i add two webparts in a page, I need few fields to be visible only for admins. As you said we can do audience targetting , i wanted to know how can we insert two webparts and insert two forms.
Thanks for your help.
You can do this using Sharepoint Designer & inserting a custom list form.