Skip to main content
Rejoignez-nous lors de l'événement TDX à San Francisco ou sur Salesforce+ les 5 et 6 mars pour la conférence des développeurs à l'ère des agents IA. Inscrivez-vous dès maintenant.

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

Défi pratique

+ 500 points

Préparez-vous

Vous allez effectuer ce(tte) unité dans votre propre organisation pratique. Cliquez sur Lancer pour commencer ou cliquez sur le nom de votre organisation pour en choisir une autre.

Votre défi

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.
Partagez vos commentaires sur Trailhead dans l'aide Salesforce.

Nous aimerions connaître votre expérience avec Trailhead. Vous pouvez désormais accéder au nouveau formulaire de commentaires à tout moment depuis le site d'aide Salesforce.

En savoir plus Continuer à partager vos commentaires