---
schema_version: "1"
id: cdadeaf6154fb22032e344994c3828a86e62993ab9e8e66eac49268ed379e4fd
title: Compact Layout Limitations and Considerations
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/compact_layout_notes.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.compact_layout_notes.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8e22b8bdf549532812b1c7cfaa326d257a23353b7e7ee00714ef3a97c6d786fd
description: Keep these limitations and considerations in mind when using compact layouts.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Compact Layout Limitations and Considerations

Keep these limitations and considerations in mind when using compact layouts.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: all editions except <strong>Database.com</strong></td></tr></tbody></table>

## Considerations

- Up to ten fields on your compact layout populate the record highlights section at the top of each record view in the Salesforce mobile app. The record highlights section in Lightning Experience uses the first seven fields on the compact layout. However, the number of fields that display can vary based on the width of your screen, which record page is being viewed, and the permissions of the user.
- Changes you make to a compact layout are reflected in both Lightning Experience and the Salesforce mobile app.
- Each record type can have only one compact layout assigned to it. However, the same compact layout can be associated with multiple record types.
- Compact layouts aren’t assigned to profiles or individual users. To display different sets of fields in records by use case or role, create record types for the object, then assign the appropriate custom compact layout to each record type.
- If a user doesn’t have access to one of the fields that you assign to a compact layout, the next field on the layout is used.
- A compact layout must contain at least one field.
- Don’t make the primary field a lookup field. Doing this could result in navigation issues in Lightning Experience and the Salesforce mobile app.
- Removing a field from a page layout doesn’t remove it from the object’s compact layout. The two layout types are independent.
- If you change a field on a compact layout to an unsupported type, the field is removed from the compact layout.
- Before you can delete a compact layout that’s set as the primary compact layout for the object, you must choose another compact layout to replace it.
- In the Salesforce mobile app, tasks automatically show whether a task is open or closed and the due date (depending on a user’s access to activity dates). When customizing a task compact layout, you don’t have to add these fields to the Selected Fields list.
- Compact layouts installed from a managed package are editable. However, we recommend against editing compact layouts installed from a package, as doing so can cause destructive changes to your org. Instead, clone the installed compact layout and make your changes to the clone.
- Compact layout assignments are subscriber controlled. If a user installs a managed package that contains a compact layout and then changes the compact layout’s assignment in their org, the compact layout’s assignment isn’t overridden when they later upgrade the package.
- These considerations apply to Chatter:
    - In the full Salesforce site, a compact layout determines which fields appear in the Chatter feed item that appears after a user creates a record with a quick action.
    - To avoid inadvertent sharing of information through the feed, the Task page layout determines the fields shown in the Chatter feed items for tasks created using a quick action.
    - Primary compact layouts determine which fields are shown in Chatter personal digest emails.
- When a field with an image larger than 50x50 pixels is placed as the first field on a compact layout, the image is cropped. In any other position, the image appears as expected. If the image is in a formula field, you can get around this issue by setting the height and width values of the image in the formula to 50 pixels each. For more information, see [IMAGE](https://help.salesforce.com/s/articleView?id=platform.customize_functions_image.htm&language=en_US) in Salesforce Help.

## Limitations

- A compact layout can only contain fields from its object, including a formula field that is a cross-object reference to another object.
- Fields that aren’t available in SOAP API don’t show up on compact layouts in the Salesforce mobile app.
- Compact layouts support all field types except:
    - text area
    - long text area
    - rich text area
    - multi-select picklist

#### See Also

- [Create Compact Layouts](https://help.salesforce.com/s/articleView?id=platform.compact_layout_create.htm&release=264.0.0&type=5 "Use compact layouts to customize the fields that display for object records when viewed in the Salesforce mobile app and Lightning Experience.")
- [Assign Compact Layouts to Record Types](https://help.salesforce.com/s/articleView?id=platform.compact_layout_assign.htm&release=264.0.0&type=5 "As with page layouts, there are separate compact layouts for each object. By default, each object derives its record highlight fields, preview cards, and action-related feed items from the predefined set of fields in the object’s read-only, system default compact layout. You can create custom compact layouts on an object-by-object basis. After you create one or more custom compact layouts, you set one as the primary compact layout for the object. The primary compact layout is then used as the new default for that object.")
- [Compact Layouts](https://help.salesforce.com/s/articleView?id=platform.compact_layout_overview.htm&release=264.0.0&type=5 "A compact layout displays a record’s key fields at a glance in the Salesforce mobile app, Lightning Experience, and in the Outlook and Gmail integrations.")
- [Customize Case Hovers in Lightning Experience](https://help.salesforce.com/s/articleView?id=service.cases_set_up_lex_hovers.htm&type=5&language=en_US)