JSON inlineEditField not working for content type fields in SharePoint view formatting.

Giovana 0 Reputation points
2024-04-18T21:35:44.87+00:00

Hello,

I am trying to format a document library tile view, and I added a content type to the view with three fields, a Person, a Multi-Lookup text, and a computed field. I am able to edit the document filename with inlineEditField, but I cannot get it to work with the fields in my content type.

See the JSON below. The inlineEditField works with the $FileLeafRef, but not with $Keywords.

 {
            "elmType": "div",
            "children": [
              {
                "elmType": "div",
                "attributes": {
                  "title": "[$FileLeafRef]",
                  "class": "ms-fontColor-neutralPrimary"
                },
                "txtContent": "='File Name: '+ [$FileLeafRef]",
                "inlineEditField": "[$FileLeafRef]"
              }                
            ]
          },
          {
            "elmType": "div",
            "children": [
              {
                "elmType": "div",
                "attributes": {
                  "title": "Tags",
                  "class": "ms-fontColor-neutralPrimary"
                },

                "txtContent": "='Photo Tags: '+ [$Keywords]",
                "inlineEditField": "[$Keywords]"                
              }                
            ]
          },

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,673 questions
{count} votes