Forum Discussion

iamsarah's avatar
iamsarah
Brass Contributor
Nov 10, 2022

Add Document Link in Properties Form (configure layout)

Hi,   I have a document library and want to customize the Properties from using "Configure Layout", I need to have the link to the document either on the header or the body but can't figure it out ...
  • ganeshsanap's avatar
    Nov 10, 2022

    iamsarah I tried this on our SharePoint site and found the same behavior. Ideally you should be able to get the file name using [$FileLeafRef] but it is not working.

     

    Try raising support ticket with Microsoft directly: Get Online support 

     

    Additional Info: If you want to download the file on click from properties pane and document ID feature is enabled for this library, you can use JSON like: 

     

    {
      "elmType": "a",
      "txtContent": "Link to Document",
      "attributes": {
        "href": "[$_dlc_DocIdUrl]",
        "target": "_blank"
      }
    }

     


    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.

Resources