In this Salesforce tutorial, we will learn how to set visible lines for the text area long field in Salesforce. The feature to set visible lines for the long text area field is available in Salesforce Lightning and Salesforce Classic as well.
Visible lines in Salesforce
In Salesforce, the “Visible Lines” property for a long text area or a rich text area field determines the number of visible lines when a user views or edits the field on a record detail page of the object. This setting affects the height of the text area input box, making it larger or smaller depending on the specified number of visible lines.
With this feature, users can view more lines of detail, which is useful for fields where longer text entries are expected. It reduces the need for users to scroll within the text area, making it easier to read and edit long entries.
How to set visible lines for the text area long field in Salesforce Lightning
Here, we will learn how to set the visible lines for the text area long field in Salesforce Lightning.
The same steps must be followed to set the visible lines for the text area long field in Salesforce Classic.
In this example, we will create a custom long text area field for the Case object that captures detailed information about the customer issues entered in the long text area field Case details.
Here, we want to set the visible lines for the case details field so the support agent can quickly review and edit it to understand the customer’s issues. We want to make sure that the case details are visible without scrolling.
Here are the following steps:
1. Navigate to the Setup page of Salesforce and click on the Object Manager tab.

2. In the Object Manager tab, search for and select the object for which you want to set the visible lines for the long text area field.

3. In the Object setup, click on Fields and Relationships.

4. In this step, select an existing Long text field or click the New button to create a long text field.

5. From the list of data types, select Text Area (Long) and click on the Next button.

6. Enter the required details like Field Label and Field Name.
In the Visible Lines field, set the number of lines you want to display for the long text area. In this example, we have set the Visible Lines as 15. After this, click on the Next button.

7. To establish the field-level security for the Long text area field, select the profiles that can access this field. After this, click on the Next button.

8. Select the page layouts to make this field visible on the page layout and click the Save button.

9. To check the visible lines in the long text area field, navigate to the object and open a record or create a new record.
In the Long text area field, enter long text like description or detail and click the Save button. The lines displayed in the field will be according to the number we have set for Visible lines.

In this way, we can set the visible lines for the text-long area field in Salesforce Lightning by following the above steps.
Conclusion:
In Salesforce, the visible line for the text area long field is used to control how many lines of the text are shown for the text area long field. This text area long field allows the users to enter up to 131,072 characters on separate lines.
I hope you understand how to set the visible line for the text area long field type in Salesforce.
You may like to read:
- How to Set Default Value For Text Field in Salesforce
- Text Formula Field Salesforce
- How to Create Text Field Salesforce
I am Bijay Kumar, the founder of SalesforceFAQs.com. Having over 10 years of experience working in salesforce technologies for clients across the world (Canada, Australia, United States, United Kingdom, New Zealand, etc.). I am a certified salesforce administrator and expert with experience in developing salesforce applications and projects. My goal is to make it easy for people to learn and use salesforce technologies by providing simple and easy-to-understand solutions. Check out the complete profile on About us.