Inline Editing On Person Fields

Copper Contributor

Hi guys,

 

I am trying to implement the Inline Editing on a Person/Group Field.

I am using this condition.

{
  "elmType": "div",
  "inlineEditField": "[$Pessoa]",
  "txtContent": "@currentField"
}

 

44.PNG 

And it works! I can edit inline. 

Thing is it doesnt show me the person name, it shows [Object Object]

 

Any solution?

Thanks in advance

3 Replies

@jsantos489 Give this a try.  

{
    "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
    "elmType": "div",
    "inlineEditField": "[$fieldName]",
    "txtContent": "[$FieldName.email]"
            }

 

@jhersko 

 

This shows the email though. Is there a way for it to still display the person's name?

@mstevens22 

in that case you can use the "title" property instead of the "email" property

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "inlineEditField": "@currentField",
  "txtContent": "@currentField.title"
}