Skip to main content
欢迎参加 3 月 5 日至 6 日在旧金山举行的 TDX AI 代理时代开发者大会,或通过 Salesforce+ 参与。立即注册

Get Hands-On with Conditional Formatting in Dynamic Forms

Learning Objectives

After completing this unit, you’ll be able to:

  • Make record fields stand out with conditional formatting.
  • Get hands on with the Dynamic Highlights Panel.

Make Record Fields Stand Out with Conditional Formatting

Help users quickly identify the most relevant information on a record page by applying formatting to 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 criteria and rules that you define. These conditions can be based on the field’s value or on the values of other fields on the page.

Conditional formatting uses rulesets, which are collections of rules. Each rule is made up of conditions that determine how and when formatting appears on a field. You can view, edit, and delete rulesets for an object with the new Conditional Field Formatting node in Object Manager.

This change applies to Lightning Experience in Group, Professional, Enterprise, Performance, Unlimited, and Developer editions.

To apply conditional formatting to a field, open a Dynamic Forms-enabled record page in the Lightning App Builder and click the field on the canvas. In the field’s property panel, use the Conditional Formatting property to assign an existing ruleset or to create one.

For example, you have a Customer Sentiment field on a page with available values of Positive, Neutral, and Negative. You can add conditional formatting to the field with rules configured to show a green happy-face icon when the field value is Positive, a yellow neutral face when the value is Neutral, and a red sad-face icon when the value is Negative. This way, viewers can instantly see the sentiment value based on the style and color of the icon.

Get Hands-On with Conditional Formatting in Dynamic Forms

In this unit, you learned about conditional formatting and rulesets, which help a user identify important information on a record page. Now, apply your knowledge in this hands-on challenge to complete your Platform App Builder certification.

Resources

实践挑战

+500 分

准备好

您将在您自己的实践组织中完成此单元。单击启动以开始,或单击您的组织的名称以选择不同的组织。

您的挑战

Review Salesforce updates to maintain your Platform App Builder certification
Get hands-on by using the Dynamic Highlights Panel.
  • Navigate to the Sales App.
  • Edit page on a contact record and leave default as is.
    • Name: Contact Record Page
    • API Name: Contact_Record_Page
  • Remove the standard Highlights Panel
  • From Fields tab, drag the Dynamic Highlights Panel and ensure Name is selected as the Primary Field on the component.
  • Add the following action buttons on the component:
    • Edit
    • Delete
  • Drag the following fields into the Dynamic Highlights Panel:
    • Title
    • Account Name
    • Phone
    • Email
    • Contact Owner
    • Level
  • Save and activate as Org Default.
在 Salesforce 帮助中分享 Trailhead 反馈

我们很想听听您使用 Trailhead 的经验——您现在可以随时从 Salesforce 帮助网站访问新的反馈表单。

了解更多 继续分享反馈