CRT-403 practice question 11 of 35

The Service Manager provided the app builder with color code requirements for case age on open cases. New cases populate a green circle Day-old cases populate a yellow circle Three-day-old cases populate a red circle How should an app builder implement this requirement?

Full set: 291 questions
Answer options
A: Formula Field Correct answer
B: Quick Action
C: Custom Button
D: Lightning Web Component
Correct Answer:
A. Formula Field
Explanation

A formula field is the most appropriate and efficient solution. It can use the IMAGE() function in conjunction with conditional logic (e.g., an IF() statement) to display different images based on the case's age. The formula would calculate the difference between the case creation date and the current date (NOW() - CreatedDate) and render the corresponding green, yellow, or red circle image. This is a standard declarative feature that directly meets the visual requirement without needing code or user interaction.

Why Incorrect

B. Quick Action: Quick Actions are user-initiated shortcuts to perform tasks like creating records or logging calls, not for passively displaying a visual status indicator.
C. Custom Button: A Custom Button requires a user to click it to initiate an action; it cannot be used to dynamically display a status image on a record page.
D. Lightning Web Component: While an LWC could achieve this, it is a programmatic solution. Salesforce best practices advocate for using declarative tools like formula fields when they can meet the requirement.

References

1. Salesforce Help, Formula Operators and Functions I–Z: The IMAGE() function is documented as the standard way to display an image in a formula field. The documentation states, "Inserts an image... Use it in formula fields...". The IF() function is also detailed for applying the required conditional logic based on case age.

2. Salesforce Help, Calculate Field Values With Formulas: This guide explains, "A formula is an algorithm that derives its value from other fields, expressions, or values... You can use them in... formula fields." This supports using a formula to calculate the case age and determine the correct color.

3. Salesforce Platform App Builder Certification Study Guide (SU23), Section: Business Logic and Process Automation: This guide emphasizes using declarative tools for business logic. It outlines the capabilities of formula fields for calculations and dynamic outputs, which aligns directly with solving this requirement without resorting to programmatic solutions like a Lightning Web Component.

Scroll to Top