0
votes

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?

1
Is this question related to programming in some way? - Robert Harvey
I was going to suggest using a formula field to show a substring of the long text area field, but it appears you can't use one in a formula. - Daniel Ballinger
I am not sure of the solution, but there may be a programmatic way of solving the problem. Otherwise you are probably right Robert and maybe this is better suited for the Salesforce discussion boards. - Jim
@RobertHarvey if this turns out to be the wrong place for this question is it possible to move it to salesforce.stackexchange.com? - Daniel Ballinger
@DanielBallinger: SalesForce is not a valid migration path; it's still in beta. - Robert Harvey

1 Answers

2
votes

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.