Sunday 22 January 2017

Unable to find the default new or edit form for list/ document library in SharePoint



Do you have an error message when you try to open a SharePoint library, Edit ore view the properties of a file/folder? This is mostly like that somebody is messed with your forms , ie probably your forms become corrupted or deleted. This can break your entire SharePoint library. This is happening when some one is trying to move a SharePoint library to another one or working on document template forms. 

The error is something like that

  • Unable to find the default new form for list (listname)
  • Unable to find the default edit form for list (listname)

 
I will tell you how you can resolve this.

The basic and simplest method is



    Method 1

     

    Take back up and delete the existing EditForm of a doc library.

    For this
  1.  Open site in Sharepoint Designer 2013
  2.  Go to All Files

3.       Select the document library


4. Click 'Forms' folder





5. Keep the backup of EditForm.aspx

6. Delete the Editform.aspx

7. Then Got to 'lists and libraries' on left side links (Site Objects)

8. Select the library

9. On right side you can see 'Forms' tab.


 
10. Cleck 'New' link in there.
11. 'Create new list Item'  pop up will appear. Ente 'EditForm' in file name space.
 
 
12. In 'Select the type of form to create ' session , choose the radio button ' Edit item form ( Used to edit existing list items).
13. In advanced option ' Select the content type to use ' , select teh content type (Optional, Otherwise it will automatically choose the default one )
14. Refresh the page and try 'Edit Propereties' link on list item menu.
 

Method 2

 
Follow first 6 steps from Method 1
7. Now create a new .ASPX file and name it “EditForm.aspx”. and open it up in the editor.
 
8.  Now create a new library, and find the “EditForm.aspx” file in the new library and open it up. Copy over everything from the “EditForm.aspx” and copy it in the “EditForm.aspx” file you created in your broken library

9. The list Name and List id can be found in the “List and libraries” (see the image below). Also note the “Allitems.html” if this one is missing you can just recreate it using the “New” button.
10. Make sure that when you replace the List ID that you remove the curly brackets { }. As for the Title you can just fill in the name of your library. Now when you save the file in our case “EditForm.aspx” and when you did everything according to the above, it should be visible in “List and libraries” again.
11. Refresh the page and click edit prop    erties from list item, menu
 
 
 
 



6 comments:

  1. How do yo fix this without using SharePoint designer? Seems SharePoint designer can no longer be used with SharePoint online anymore.

    ReplyDelete
  2. Frank, Were you able to find a solution for this issue for SharePOint online. I am also facing the same issue.

    ReplyDelete
  3. Shiney may i know what caused this issue in SharePoint online? are you trying to migrate from one site to another site in SPO?

    ReplyDelete
  4. I am facing issue with all the migrated lists. I have migrated from SharePoint 2013 to SPO using Sharegate

    ReplyDelete
    Replies
    1. I am facing the same issue, do you have any idea?

      Delete
  5. Geek Squad Protection goes above and beyond the manufacturer's warranty to extend your coverage and protect your purchase.
    geek squad tech support
    geek squad chat
    Geek squad appointment
    webroot Geek squad
    geek squad chat

    ReplyDelete