Explanation: A formula field is a custom field that calculates a value based on a formula expression. A formula field can display text, numbers, dates, or images. A formula field can use the IMAGE function to display an image from a URL. A formula field can be added to an object page layout to show the image on the record detail page1.
A static resource is a file or a collection of files that can be uploaded to Salesforce and referenced in a formula field, a Visualforce page, a Lightning component, or a web tab. A static resource can store images, style sheets, JavaScript, or other files. A static resource can be used to store the custom image that Cloud Kicks wants to display on the record detail page2.
An object page layout is a configuration of fields, buttons, related lists, and other components on a record detail page. An object page layout can be customized to show different information for different users, based on their profiles or record types. An object page layout can be used to add the formula field that displays the custom image to the record detail page3.
These platform tools can be used to achieve the requirement of adding a custom image to a record detail page, making it easier for Cloud Kicks to visually identify its current membership level. For example, the formula field can use the IMAGE function to display the custom image from the static resource, based on the value of another field that indicates the membership level. The object page layout can then include the formula field on the record detail page for the relevant users.
Image field is a custom field that allows users to upload and display images on a record. Image field can be used to show images on a record detail page, but it is not suitable for Cloud Kicks’ requirement, because it does not allow the image to be determined by a formula expression. Image field requires the user to manually upload the image for each record, which is not efficient or consistent4.
Dynamic form is a feature that allows admins to add, group, and reorder fields and sections on a Lightning record page using the Lightning App Builder. Dynamic form can be used to create flexible and dynamic page layouts that can adapt to different contexts and scenarios. Dynamic form also supports visibility rules, which can be used to show or hide fields or sections based on filters or conditions. However, dynamic form is not a platform tool that can be used to display a custom image on a record detail page, as it does not affect the content or functionality of the fields. Dynamic form can only be used to configure the layout of the fields, not the values or images of the fields5.
Lightning components are reusable units of user interface that can be used to build Lightning pages and applications. Lightning components can be built using HTML, CSS, JavaScript, and Apex. Lightning components can display data, images, icons, charts, buttons, or other elements on a Lightning page. SLDS icons are icons from the Salesforce Lightning Design System that can be used in Lightning components to represent actions, objects, or concepts. Compact layouts are page layouts that show a record’s key fields at a glance in the highlights panel, the list view, the Related tab, and other places. Compact layouts can be used to customize which fields are displayed in these places6.
Lightning components, SLDS icons, and compact layouts are platform tools that can be used to display images on a Lightning page, but they are not the best option for Cloud Kicks’ requirement, because they are more complex and require more development skills than a formula field, a static resource, and an object page layout. Lightning components also require more maintenance and testing than formula fields. SLDS icons are predefined icons that may not match the custom image that Cloud Kicks wants to display. Compact layouts are not relevant for displaying images on a record detail page, as they only affect the highlights panel and other places6.
References: 1: Use Images in ‘Formula’ Fields - Salesforce 2: Static Resources | Salesforce Developer Guide 3: Page Layouts | Salesforce Help 4: Image Field | Salesforce Platform - YouTube 5: Dynamic Forms Tips and Considerations - Salesforce 6: Lightning Components Basics Unit | Salesforce Trailhead