Compact layouts

Compact layouts display a record's key fields in Salesforce Lightning Experience. If your org was created after April 2022 with some frequently used record pages configured as Lightning record pages, you can see a compact layout as the highlight panel header section of team member and employment record pages:

Screenshot showing compact layout for the highlight panel header section on a team member record page

Screenshot showing compact layout for the highlight panel header section on an employment record page

Compact layouts are object specific. You can include a maximum of 10 fields in the definition of a compact layout, but only up to the first 7 can be displayed on the layout. The exact number of fields displayed depends on the size of the screen on your device; smaller screens may display fewer fields. To make sure all displays include the important fields in a compact layout, ensure your layout definition lists the fields in priority order, with the most important at the top of the list. If a user does not have access to one of the fields in the compact layout, the next field is displayed.

Compact layouts display at the top of an object home page and also wherever an object appears on a record detail page or a related list. For example, a compact layout defined for the Work Location object displays when you hover over a Work Location link on the Employment Record:

Partial screenshot showing a compact layout displayed for the work location object

Many objects supplied as part of your Sage People system include a System Default compact layout. System default layouts typically contain a minimum number of fields and cannot be edited. You can clone the system default layout and edit the clone, or you can create your own compact layout.

To create a compact layout: 

  1. Go to Setup > Object Manager, and select the object where you want to add the compact layout.

  2. From the sidebar, select Compact Layouts.

  3. On the Compact Layouts page, select New.

  4. Enter a label for the compact layout. The Name field is automatically completed based on the label you enter.

  5. Select the fields you want to include from the Available Fields panel and select Add to move them to the Selected Fields panel.

  6. When you have added and ordered the fields, select Save.

To use the new compact layout, you need to assign it: 

  1. On the Compact Layouts page, select Compact Layout Assignment.

  2. On the Compact Layout Assignment page, select Edit Assignment.

    You can assign a compact layout as primary, and then override it for specific record types, or use the primary compact layout wherever compact layout is displayed for this object.

  3. To change the primary layout, select the Primary Compact Layout picklist and choose the compact layout you want to assign as primary.

  4. To assign compact layouts for record types:

    1. On the Compact Layout Detail page select Edit Assignment.

    2. On the edit Compact Layout Assignment page, select the record type row in the table:

      Screenshot showing compact layout assignment edit page with record type selected

    3. Select the Compact Layout to Use picklist and choose the layout you want for this record type:

      Partial screenshot showing a compact layout slected for a specific record type

    4. Select Save

  5. After you have made your selections, select Save.

To edit a compact layout: 

  1. Go to Setup > Object Manager, and select the object where you want to edit the compact layout.

  2. From the sidebar, select Compact Layouts.

  3. On the Compact Layouts page, select Edit for the compact layout you want to edit.

  4. Make your changes.

  5. When you have completed your changes, select Save.

For more information, see Salesforce help content on compact layouts.