Find your content:

Search form

You are here

Salesforce Long Text Area

 
Share

This is a pretty simple question but I can't seem to find an answer. I have created a long text area in Salesforce and set the visible lines to 2:

enter image description here

But when viewing the field in a lead record - all rows are shown:

enter image description here

Referring to the documentation for the visible lines attribute:

For long text area fields, set the number of lines to be displayed on edit pages.

So I can set the number of visible lines on the edit page no problem, but how do I set the number of visible lines for the text area long field on the lead details page?


Attribution to: Jim

Possible Suggestion/Solution #1

Since you can't use Text Area (Long) within formulas you could create a before insert/update trigger to copy a shortened value to another custom field that you only display on the view layout?

The approach might be a bit heavy handed and will also muck up the inline editing.


Attribution to: Daniel Ballinger

Possible Suggestion/Solution #2

I would create a workflow to fire whenever this field changes and have a field update that sets the first xxx characters to another field that you can then show on the page layout.

WF Criteria = IsChanged(field) Field Update = Formula : LEFT(LongTextArea, 2000)


Attribution to: DCBoy
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/40

My Block Status

My Block Content