---
schema_version: "1"
id: cd7f46cb8835fb8bd9ada3604c3bcbc81f763d318f8f8d6572334292ebed9ac9
title: Considerations for Conditional Field Formatting in Lightning App Builder
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/conditional_formatting_considerations.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.conditional_formatting_considerations.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 72821094d238d4e477a135283a1757c91fbe7b45623ca3babf16dca6c4df6051
description: Keep these considerations in mind when configuring conditional formatting for fields on Dynamic Forms-enabled record pages in the Lightning App Builder.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Considerations for Conditional Field Formatting in Lightning App Builder

Keep these considerations in mind when configuring conditional formatting for fields on Dynamic Forms-enabled record pages in the Lightning App Builder.

### 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;">Lightning App Builder available in: Salesforce Classic (not available in all
            orgs) and Lightning Experience</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">Lightning pages and Dynamic Forms available in: Lightning Experience and the
            Salesforce mobile app</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <p style="margin-bottom:0;">Available in: <strong>Group</strong>
              <strong>Essentials</strong>, <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>,
              <strong>Unlimited</strong>, and <strong>Developer</strong> Editions
            </p>
          </td>

        </tr>
      </tbody>
    </table>

## Considerations

- You can apply conditional formatting only to fields on objects that support Dynamic Forms. Dynamic Forms is supported for most but not all standard Lightning web component (LWC)-enabled objects. See [LWC Migration for Record Home Pages](https://developer.salesforce.com/docs/component-library/documentation/en/lwc/migrate_lwc) for a list of LWC-enabled objects. If you open a record page for an object in the Lightning App Builder and don’t see a Fields tab in the component panel, then Dynamic Forms and conditional formatting aren’t supported for that object. For example, the Note object doesn’t support Dynamic Forms because it has a fixed layout. In addition, the Campaigns, Products, and Tasks objects, which aren’t LWC-enabled, use information from page layouts and therefore don’t support Dynamic Forms or conditional formatting.
- We recommend that you add no more than 15 unique rulesets to a Lightning page.
- The icons available for conditional formatting come from the [Lightning Design System](https://www.lightningdesignsystem.com/icons/). If you don’t see a specific icon in the icon picker, then it’s not supported for conditional field formatting.
- If you apply conditional formatting to a field, but it doesn’t appear when the page displays at run time, then conditional formatting isn’t supported for that field.
- Conditional formatting rules can evaluate differently at run time, depending on the permissions of the user viewing the record page.
    
    For example, let’s say that you have fields A, B, C, and D, and a user only has permission to see fields A and B. The user goes to a page that contains field A, which has conditional formatting configured for it with two rules. The first rule has conditions based on fields C and D, which the user doesn’t have permission to view. The second rule has conditions based on field B, which the user does have permission to view.
    
    Because the user doesn’t have permissions for fields C and D, the first rule could evaluate to `true` or `false`, but the user can’t know the outcome because they can’t see those fields. However, because they can see field B, they can see the outcome of the conditions of the second rule. In this case, Salesforce ignores the outcome of the first rule and delivers conditional formatting to the user based only on the outcome of the second rule, because the conditions for that rule are based on a field they have permission to view field B.
    
    Therefore, it’s possible that the user in this example sees a different result for conditional formatting than their colleagues who have access to fields C and D.
- Conditional formatting rules evaluate based on the raw value of a number, not its rounded up display value.
- Conditional field formatting rules treat blank (null) values on numerical fields as zero values.
- Conditional formatting rulesets aren't automatically included when you add a Lightning page to a change set. If you create an outbound change set with a Lightning page that contains conditional formatting, make sure to add all of the page's conditional formatting rulesets to the change set. Conditional formatting rulesets are listed as "UI Format Specification Set" in the change set Component Type dropdown.

## Limitations

- A ruleset can have up to 10 rules.
- A rule can have up to 10 conditions. If you don’t specify any conditions, the rule always applies.
- You can’t add conditional formatting to [cross-object fields](https://help.salesforce.com/s/articleView?id=platform.dynamic_forms_spanning_fields.htm&release=264.0.0&type=5 "Drill into lookup relationship fields from the component palette on Dynamic Forms-enabled pages in the Lightning App Builder, and access fields from related objects. Drag the cross-object fields onto your record page to display relevant data from related objects."), nor can you select cross-object fields when creating rules.

#### See Also

- [Conditional Field Formatting in Lightning App Builder](https://help.salesforce.com/s/articleView?id=platform.conditional_formatting_overview.htm&release=264.0.0&type=5 "Make a field stand out by adding special formatting based on rules and criteria you provide, so that end users can quickly identify the most relevant information on a record page. You can apply conditional formatting to almost any field on a Dynamic Forms-enabled page, including the fields in the Dynamic Highlights Panel component.")
- [Add Conditional Formatting to Record Fields in Lightning App Builder](https://help.salesforce.com/s/articleView?id=platform.conditional_formatting_create.htm&release=264.0.0&type=5 "Give fields on Dynamic Forms-enabled pages custom icons and colors that can appear, disappear, and change color based on the rules you create.")