1

I am using SharePoint Online and have a custom list in the Modern Experience that has long titles for a few columns. With no luck I have been searching for a solution to have Word-Wraping on the title fields.

I have looked into JSON formatting and so far all of the articles talk about the data fields and not the title headers.

If this was the old SharePoint, I would write CSS in a CEWP and it would be a done deal, but this doesn't appear to be an option anymore in the Modern Experience.

Any tips or solutions to getting long title names in a custom list on SharePoint Online (Modern Experience) to do a Word-Wrap?

1

You can check the official document below, there is not a method to substring the text.

Use column formatting to customize SharePoint

As a workaround, we can use the JSON formatting below.

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "div",
  "style":{
        "white-space":"nowrap"
  },
  "txtContent": "@currentField"
}
  • Thanks for sharing this @LZ_MSFT. – mdevm Sep 23 at 14:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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