How to truncate multiple lines of text in SharePoint?

How to truncate multiple lines of text in SharePoint?

I’m stuck on a particular scenario right now because of a recent change by Microsoft in Office 365 regarding the “Multiple lines of text” column in a Sharepoint list. My main goal is to truncate this column.

How to use jslink for multiple list views?

Within your JSLink, you can check if the view matches the GUID of the view you intend to apply JSLink to. Cimares from myfatblog shows an excellent example of overriding the BaseViewID.

How to create 2013 multiple line text column?

Create a 2013 style workflow on the list. Add an “Extract Substring from Start of String” action. Click “string” and click “fx”. Select “Current Item”, your Multiple Line of Text field, “Plain Text” and click OK.

When do you override the context in jslink?

When you override the context, it provides properties such as view, BaseViewID, webPartID etc. Within your JSLink, you can check if the view matches the GUID of the view you intend to apply JSLink to. Cimares from myfatblog shows an excellent example of overriding the BaseViewID.

How do you truncate the description column in a list?

Then, if you want to keep the Calc columns from displaying in the Display form, you’ll have to create a custom form. NOTE: This javascript doesn’t work for Extended Rich Text because it affects after the truncation, and the div tag is too long for the amount I was truncating.

How to format multiple lines of text in SharePoint?

SharePoint list View formatting only allows a subset of css. Notice that there are no styles with “-webkit-” prefix. Refer to the documentation here – https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting#style View formatting expressions should be enough.

How to show more in multiple lines of text?

Previously when user opens a list item and viewed the list form it used to truncate the content within the Multiple Lines of Text field – it only showed a few lines and the user had to click ‘show more’ to see all of the content in the Multiple Lines of Text field… now it appears to be showing EVERYTHING in the Multiple Lines of Text field.