Friday, May 23, 2008

How to edit list forms like NewForm.aspx, EditForm.aspx and DispForm.aspx in MOSS?

Most common question among SharePoint customization is that
“Why Edit Page option is not available in list forms like NewForm.aspx, EditForm.aspx and DispForm.aspx?”

If we need to edit New/Edit/Display Form of list most of the time we are using SharePoint designer.

But here is the one nice trick to achieve this functionality.

Just add “&ToolPaneView=2” at the end of the URL and refresh the page.

So that you’re URL will be like this.
http://sharepointkings/... /Lists/Demo/NewForm.aspx?RootFolder...&Source=…&ToolPaneView=2

http://sharepointkings/... /Lists/Demo/EditForm.aspx?RootFolder...&Source=…&ToolPaneView=2

http://sharepointkings/... /Lists/Demo/DispForm.aspx?RootFolder...&Source=…&ToolPaneView=2

You can see add webpart tool pan beside this web part.



Just add or remove your webpart and your work is done.
cheers

Below contents are Update as on 22/07/08

There is one more parameter with the same name just pass the value 3 with that.

So that you’re URL will be like this.

http://sharepointkings/... /Lists/Demo/NewForm.aspx?RootFolder...&Source=…&ToolPaneView=3


And that will take you to this type of page.



This will allow you to search webpart across all available galleries

Cheers once again...

8 comments:

Anonymous said...

Nice trick, just what I needed! Thank you!

Anonymous said...

Thats great info, but also I would like to alter the 'close' button. Is it possible to do that in a similar way?
I've seen how you can use Sharepoint Designer to create a copy of the page and create a new one, but then I'm unsure how to load this onto a production server where there is no access via SPD.
Thanks

Anonymous said...

Thank you, so very much, exactly what i was frantically searching for

brro said...

thanks buddy

Jaclyn said...

This isn't working for me on any pages. I've attached the link to the end of my webpage address and it does not launch the Web Part tool. Any suggestions?

Parth Patel said...

Jaclyn,

it should be working... may be URL was wrong, try manually in browser or may be user don't have permission.

Owner said...

Nice Idea..
Just type &toolpaneview=2
immediatly after ? and press Enter.

Rachel said...

This is brilliant. Saved me a lot of work. Thanks!




Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com