Cloud Kicks (CK) tracks the support level of its customers on the account Record page. CK wants to a text notification on a case record page when the Related account is a platinum-level customer. How can an app builder meet this requirement?
A.
Clone the Case Lightning page. Add a rich text component to the new page, and assign this page to platinum accounts.
B.
Add a rich text component to the Case Lightning page Set the component visibility of the rich text component to when the account support level is Platinum. Create a text-only custom Lightning Web Component Drag the custom Lightning Web Component into the Case page layout.
C.
Set its visibility to when the account support level is platinum. Create a text-only custom Lightning Web Component. Clone the case page layout.
D.
Drag the custom Lightning Web Component into the page, and assign the layout to platinum cases.
The correct solution is to add a Rich Text component to the Case Lightning record page and then use component visibility so it only appears when the related Account’s support level is Platinum.
Salesforce Lightning App Builder supports visibility rules that show or hide components based on field criteria. Salesforce documentation confirms that visibility filters on record pages rely on field data associated with the page’s object, and related lookup fields can be used in visibility-rule considerations.
This is the best declarative solution because the requirement is only to display a text notification. A custom Lightning Web Component or cloned Lightning page is unnecessary.
Why others are incorrect:
A is incorrect because assigning a Case page to “platinum accounts” is not the correct assignment model.
C and D are incorrect because custom Lightning Web Components add unnecessary development effort for a simple text notification.
===========
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit