07 September, 2011

Add Web Parts to DispForm, EditForm or NewForm.aspx

One of my user had opened a ticket by asking is it possible to show an “Item List” on the “View Item” page.
When viewed the complete details and browsed to the “View Item” page and clicked the Site Actions then i found out that there were no “Edit Page” option available.
Did some research and found the solution.

Resolution steps are as follows:
1. Open Internet Explorer

2. Navigate to your “View Item” page i.e. DispForm.aspx

3. Replace everything in the URL after “?ID=#“ with “&PageView=Shared&ToolPaneView=2″ (without the quotes please) and press Enter

That’s it-ISSUE RESOLVED :-) :-)

If you have any queries/questions regarding above mentioned information then please let me know..
I would be more than HAPPY to HELP you as well as RESOLVES your issues, Thanks again!!

4 comments:

  1. Has anyone noticed that adding CEWP in editform.aspx would break the page and version information section shows up in the UI? Any workarounds for this? Anyone ?

    ReplyDelete
  2. I did a repro on this and didn't face any problems.

    steps executed by analyzing following condition:
    1. added a CEWP on list-editform.aspx
    2. added a CEWP on library-editform.aspx
    3. added a CEWP on webpart page by adding multiple webparts but still no problems at all.

    as you mentioned that it breaks then what exactly happens, please brief more details ?

    are you using any scripts inside CEWP ?

    what exactly you wants to achieve by means of CEWP ?

    any error messages ?

    any event's generated in event logs ?

    please check and let me know the results, thank you

    ReplyDelete
  3. hi, thinks for you article, i doing the some think but i delete the default webpart from the newForm after inserting my webpart.
    but after choising add new item a get this error
    Server Error in '/' Application.
    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.

    Details: To enable the details of this specific error message to be viewable on the local server machine, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".










    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.













    Anu help please

    ReplyDelete
  4. Did you customized the newform.aspx?

    If you open the list directly by means of view all sie content-List section-select the list in which you are facing the problem then what happends?

    How many items are present in that list?

    Did you customized it by means of SPD?

    I can ensure you that list data will be as it but wants to dig more to repair the same list.

    let do one thing-

    take te backup of the list forms

    copy any newform.aspx from any list to this problematic list and check the results

    if this dont work then cree one blank list and transfer the data from this problematic to new one..

    Please let me know which one suits beter...

    ReplyDelete

Your feedback is always appreciated. I will try to reply to your queries as soon as possible- Amol Ghuge

Note: Only a member of this blog may post a comment.