Forum Discussion
Sarah_Morse
Jun 01, 2022Copper Contributor
"Edit" document Properties not showing in library web part
I added a document library web part on a page but "Properties" is not displaying as an option in the file menu. Users upload their documents straight to the library web part, but SharePoint Online no longer prompts the user for metadata (even if fields are required or using content types). So after they upload the document, the user needs to edit the properties. However, when I click on the ellipse, the menu is limited and does not give me the option to view/edit file properties. The "Properties" option DOES appear in the file menu in the library itself, however.
I know there are other ways to edit properties (clicking the "i" icon or edit in grid mode, but those are less user-friendly/intuitive. Am I missing something? Why can't I navigate to "Properties" from the file menu in a library web part? I also can't see other options like Version History or Manage Access.
Web part view:
Document Library view:
2 Replies
Sort By
Sarah_Morse This is the default behavior of SharePoint document library web part and you cannot change that.
However, as a workaround you can create a link to properties form using JSON formatting in SharePoint.
Example:
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "a", "txtContent": "Edit Properties", "attributes": { "href": "=@currentWeb + '/Shared Documents/Forms/EditForm.aspx?ID=' + [$ID]", "target": "_blank" } }
where Shared Documents is the name of document library (in library URL). You can add this JSON on any column in your library (or create a new column in library & add the JSON).
Output:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- RobElliottSilver Contributor
Sarah_Morse basically you've answered your own question: the document library web part has fewer options than if you are in the document library itself.
Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)