0

I have a SharePoint Online List linked to a Power App. When I enter Comments in the Power App, the comments get flooded over to SharePoint list.

However, when the comments get populated in the SharePoint list using the following JSON code:

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "div",
  "style":{
        "white-space":"wrap"
  },
  "txtContent": "@currentField"
}

I get the follwing output in SharePoint:

SharePoint Column Screenshot

How can I pull over the HTML formatted text from my Power App as regular text?

2
  • Multi-line Rich text fields are not supported in List Formatting and will always render this way. They will look ok if you remove the format. Commented Dec 20, 2022 at 22:33
  • What is the column type (data type) of "Comments" column? Are you adding comments using rich text control (HTML text control) from Power apps? Commented Dec 21, 2022 at 8:48

1 Answer 1

0

In your PowerApp, you can try wrapping your text in PlainText() and see if that produces the desired result. In my experience, it does an ok job but it isn't perfect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.