Forum Discussion
HTML Column Formatting
- Jan 23, 2023
Hi smithmrk,
did you apply a JSON formatting stylesheet on that column?
I get the same effect, if i create a new "Multiple lines of text" column, switch it to "Use enhanced rich text" and then i.e. apply this template{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "=@currentField" }
If so, then try to remove that formatting sheet.
Best Regards,
Sven
Hi smithmrk,
did you apply a JSON formatting stylesheet on that column?
I get the same effect, if i create a new "Multiple lines of text" column, switch it to "Use enhanced rich text" and then i.e. apply this template
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "=@currentField"
}
If so, then try to remove that formatting sheet.
Best Regards,
Sven
- smithmrkJan 24, 2023Copper Contributor
I removed the formatting as you suggested and that worked...however is there a way to show all the text in the field? If you look at my screen shot...I have the field next to it showing all the text, but it is cutting off my Description field.
- SvenSieverdingJan 25, 2023Bronze Contributor
Hi smithmrk,
mhm...
you could try to go into "Gear"->"List Settings"->"<Your Column>" and increase the number of lines for editing.
Has the other approval column any formatting? Are your "Description" column and the "Approval" column defined identically? Or is that not a multiline textfield?
Best Regards,
Sven- smithmrkJan 25, 2023Copper ContributorThanks for the suggestion...but that didn't work.
YES, the Approval History Column has JSON formatting to expand the column view. However, for the description column, because we had to remove the JSON to show Rich Text format, it won't let me use that to expand the column.
The Approval History JSON looks like this:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"style": {
"white-space": "normal",
"padding": "11px 0"
}
}
I guess I can't have the best of both worlds.
Mark