Adding new webparts to SharePoint list New, Edit, AllItems form

Everyone seen those New, Edit, View etc forms that get displayed when you interact with your lists. More often than not we need to add some extra functionality to them. Some customers ask me to include pieces of item information in bold for visibility on a top of the View page; some ask for logic requiring .NET development. The good news is that there is an easy way to include any of those without re-creating edit page or compromising its existing functionality.

We start by opening our site with SharePoint Designer and navigating to the list were interested in. Then we find the page we`d like our custom functionality in, in our case its a NewItem.aspx; we check out and open the page, you`ll see something like this:

spd_new

Now, we`re going to click in the placeholder over the edit form and make the region editable by selecting the command from the menu below:

spd_custom_content

Once the area has become editable we cinsert a webpart into there by following the steps from below:

spd_webpart

In our case I haven`t really inserted anything usefull – just an announcement list right over the top of my NewItem form:

browser

In reality we can place any sort of content or functionality into the page. We can create out custom webpart in .NET for that mater and insert complex logic into there; we can drop a content editor webpart that will execute a simple javascript and manipulate the look and feel of our page.

The best part is that we`re not breaking the Edit/View/New page. Also, we don`t need to make any modifications on a server to allow execution of .NET code on the page.

Very handy, real time saver.

This entry was posted in MOSS, sharepoint, sharepoint designer, wss and tagged , , . Bookmark the permalink.

Comments are closed.