---
schema_version: "1"
id: 1ef1be838e0b1d6d94fefbd57d92c84aee4f41af51e7b1a09a4972f55cd4f448
title: Add Conditional Formatting to Record Fields 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_create.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.conditional_formatting_create.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 59c2a223d3f5ae39ec288441635f5898ca8d6b2cc6454512d708ff491077ecef
description: Give fields on Dynamic Forms-enabled pages custom icons and colors that can appear, disappear, and change color based on the rules you create.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Add Conditional Formatting to Record Fields in Lightning App Builder

Give fields on Dynamic Forms-enabled pages custom icons and colors that can appear, disappear, and change color based on the rules you create.

### 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> <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d103251e91">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d103251e91 ">To create and save Lightning pages in the Lightning App Builder:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d103251e91 ">Customize Application</td>

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

Conditional formatting is made up of rulesets, which are collections of rules. Each rule is made up of sets of conditions. For example, if you have a picklist field on a record with five available values, you could create a ruleset that applies a star icon to the field. Then you can configure rules and conditions to apply a different color of the star icon for each of the five field values.

1. Open a Dynamic Forms-enabled object record page in one of these ways.
    - From the Setup menu on a record page, select **Edit Page**.
        
        ![Edit Page in the Setup menu](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/extend_click/images/lex_lab_edit_page.png)
        
        When you select **Edit Page** for the first time, Salesforce makes a copy of the standard page. You edit this copy in the Lightning App Builder. If a customized page exists and is active, selecting Edit Page opens that page to edit.
    - From the Object Manager in Setup, open an object, then select **Lightning Record Pages**.
    - Open a record page from the Lightning App Builder list page in Setup. To find it, in the Quick Find box, enter App Builder, and then select **Lightning App Builder**.
2. Click a record field on the Lightning App Builder canvas.
3. In the field's property pane, click in the Conditional Formatting field and either select an existing ruleset or, to create a new one, select **Create Ruleset**.
    
    If you apply an existing ruleset, you can stop here. If you're creating a ruleset, continue with the steps.
4. Give your ruleset a name, then click **Next**.
5. To create a rule, select the icon to show on the field, set its color, and configure the conditions for the icon to appear.
    
    You can add up to 10 conditions to a rule. If you don't specify any conditions, the rule always applies.
    
    Conditional formatting is designed to amplify the information on the field that is already there. For best results and to ensure that the configuration is accessible, make sure the icon, icon color, and field value convey the same information, such as a green happy face on a field with a value of `Positive`.
6. Click **Next**.
7. Review the ruleset and the rules it contains.
8. Optionally, edit existing rules or add new ones to the ruleset.
9. When the ruleset contains the rules you want, click **Save Ruleset**.
10. Save the page.

To remove formatting from a field, click the **X** in the Conditional Formatting property to remove the ruleset assignment.

![Click the X to remove the ruleset](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/extend_click/images/lab_remove_ruleset.png)

To see, edit, or delete rulesets that have been created for an object, use the Conditional Field Formatting node when viewing the object in Object Manager.

#### 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.")
- [Considerations for Conditional Field Formatting in Lightning App Builder](https://help.salesforce.com/s/articleView?id=platform.conditional_formatting_considerations.htm&release=264.0.0&type=5 "Keep these considerations in mind when configuring conditional formatting for fields on Dynamic Forms-enabled record pages in the Lightning App Builder.")