A compact layout is used in Salesforce to show a record’s key fields at a glance, such as email, Date of birth, marital status, etc. It can also be used to manage which fields appear in the header.
In this tutorial, we will learn about the compact layout in Salesforce, its use, and how to create one. First, let’s understand the compact layout, and then we will understand how to create it.
What is a compact layout in Salesforce?
In Salesforce, the compact layout is a technique to arrange the fields and information on the record detail page. It permits the administrator to select the fields of the subset to display relatively all the fields available on the records.
This can help us boost the page’s utility, especially when the user is working in areas with limited screen space, or we can say that on a smaller screen, it boosts the utility.
It can be allotted to different profiles and is highly personalizable. The record detail page can also be customized, which helps meet the needs of different users.
Read: How to use schema builder in salesforce
What is the use of a compact layout in Salesforce?
Here we will learn what is the use of a compact layout in Salesforce. The compact layout is used for appearing the field in the header. We can allocate up to ten fields, which include the name field and the email address, which is relatively displaying all the fields available on the records.
Anyway, we suggest using a compact layout for putting the information fields into the record header, which can help the mobile user quickly access the information they want.
Read: Create community in Salesforce Lightning
Read: How to Export a Report in Salesforce
Create Custom Opportunity Compact Layout Salesforce
Suppose there is a company that sells salesforce solutions, and I am the sales representative. I must interact with clients to discuss their needs and give proof of software products. The sales process captures important details about every opportunity.
Here are the following steps:
1. Go to Gear icon –> Click on the Setup option –> Select the Object Manager tab.

2. Enter the Opportunity in the Search box –> Select Opportunity object.

3. Click on the compact layout of the opportunity object.

4. Click on the New button to create the new compact layout.

5. For the compact layout information, first, fill in the label as Sales Representative compact Layout and then the name. After that, select the compact layout fields that show the record’s key fields at a glance, then click on the save button.

6. After clicking on the save option, the Sales Representative Compact Layout is created.

7. Click on the compact layout assignment and select the primary compact layout for assigning. Here, we are selecting the Sales Representative Compact layout and then clicking on the save option.

You may also like to read the following Salesforce tutorials.
- How to Get Security Token in Salesforce
- How to Set Field-Level Security in Salesforce
- How to Create Lookup Filter in Salesforce
- How to Add Actions to Global Publisher Layouts in Salesforce
Conclusion
In this tutorial, we have learned about a compact layout in salesforce. We have also discussed the use of a compact layout in salesforce. In addition, we have covered how to create a compact layout for salesforce lightning as well as salesforce classic.
- What is a compact layout in Salesforce?
- What is the use of a compact layout in Salesforce?
- How to create a compact layout in Salesforce
- How to create a compact layout in Salesforce lightning
- How to create a compact layout in Salesforce Classic
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.