SharePoint list formatting issue - multiline text column doesn't show values after formated with JSON

Michal Ziemba 271 Reputation points
2023-04-18T12:46:47.1433333+00:00

Hi, I am struggling with the simple formatting of the multiline text field (not a rich text field). I want to display the pencil which when you click, opens the item in the edit mode. When I apply the JSON format below values in my column disappear but the pencil is visible and actionable. Can you tell me what am I doing wrong?

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "children": [
    {
      "elmType": "div",
      "txtContent": "@currentField",
      "style": {
        "white-space": "nowrap",
        "overflow": "hidden",
        "text-overflow": "ellipsis"
      },
      "attributes": {
        "iconName": "Edit",
        "class": "sp-field-quickActions"
      },
      "customRowAction": {
        "action": "editProps"
      }
    }
  ]
}

Redirect me with my question if this is not the right forum. Here it is before applying the format: User's image

And here is after applying the format: User's image

Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

Accepted answer
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2023-04-19T01:51:17.3366667+00:00

    Hi @Michal Ziemba

    The following is the result of my test with the json you provided, everything works fine:

    User's image

    Do you have "append changes to existing text" turned on?

    User's image

    Since we can't reproduce your situation, we need to narrow down the problem and try some things.

    1.Whether all SharePoint lists have the same problem? You could create a new SharePoint list to check.

    2.Check if the same issue occurs with other SharePoint site collections.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.