Expand truncated text for paragraph text fields to include rich text fields

- Properly truncate allthethings
- Better expand/contract functionality
- Give appropriate real estate in tables to text blobs; prevent tall, thin text columns
- Prevent garbage white space
---
- Column collapsing
- Better inline editing (no popover)
- Live updating data

As a Builder, I would like to be able to display File/URL/Rich Text fields with a truncate option like is currently available on Paragraph Text fields.

Eg. copyoftestno41loopmonitoringofemergencystopsofthrustersandpropellersmaintdoc1943331a1.txt or http://www.copyoftestno41loopmonitoringofemergency... does not allow for custom table widths to force wrap or truncate the URL for display. (Like is available for paragraph text.)

https://knack.zendesk.com/agent/tickets/41866

Great, thanks!

385571483152

I'm sorry, Craig. It has been awhile since I played in the world of CSS. I see you have limited your CSS to a specific view using CSS. You can also limit your CSS to a specific scene as well. For example:

#kn-scene_94 td.field_210.cell-edit > * {
overflow: auto;
overflow-wrap: break-word;
width: inherit;
max-height: 200px;
}

Thanks Robert.

385571483152

Nice! That would have been my suggestion. I don't think we can restrict CSS to a scene unless we use JavaScript to apply the CSS upon scene render, which is a little more complicated to explain. But we can definitely restrict it to a view like you have done using CSS only. In my experience, restricting the CSS to a view is much easier.

- EDIT:

I was wrong. You can limit to a specific scene by using the Element ID. For example: #kn-scene_94

I sorted this by adding the view in the first line:

#view_181 td.field_17.cell-edit > * { 

Robert, is it possible to restrict this code only to apply to a certain scene? 

I have the same field in several different tables, but only want one of them to have a limited row height.

This is fantastic thanks Robert! Works great.

Until Knack gets on this, I created a custom solution to this problem in CSS that works for tables:

Note: This does not truncate the text. Instead it creates a scroll-bar inside the RichText field's cell which prevents that cell from getting too large. All text is still visible if you scroll.

CSS Code Tips:

  1. Replace the field_id (in my example it is field_210) with the field id of your RichText field.
  2. Customize Max-Height to however large you want your row size to get. Mine is set pretty large intentionally. Feel free to shrink it down.
  3. If you want to limit the width as well then set Max-Width to your desired size.

Code:

td.field_210.cell-edit > * {
overflow: auto;
overflow-wrap: break-word;
width: inherit;
max-height: 200px;
}

Result:

Just checking back here again. Providing a truncated view of RTF fields is a VERY important feature if Knack is to keep up to date with just about any other modern app out there. Please address ASAP. 

It's been four years since this would "eventually" be added. Any updates?

Please add this feature ASAP. 

+100

What are the steps to truncated the text?

+1

I absolutely need this. I used Rich Text in many places for the same reason.

Other options with this feature request would of course be a variable for number of chars to trigger truncation, and perhaps a message / link to display if truncation occurs.