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?

2 Answers 2


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.

  • 2
    Daniel's correct, and the unspoken response to your question is that there is no way (that I'm aware of) to control how much of a longtext field is visible on a standard page layout. A simple solution might be to put that field in its own section - you can then maximize it only when required. Aug 1, 2012 at 2:13

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)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .