JSON inlineEditField not working for content type fields in SharePoint view formatting.
Giovana
0
Reputation points
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]"
}
]
},