問題文
A FlexCard must look different depending on the account's status: a compact layout when the account is inactive and a fuller layout with extra fields when it is active. As a developer, how do you implement this in the FlexCard?
選択肢
- Put the entire card inside a single Set Values element that rewrites the layout at runtime based on status.
- Define multiple states on the FlexCard, each with its own condition on the account status, so the runtime renders the state whose condition is met.
- Use a Data Mapper Load to store the chosen layout on the actual account record so the card knows which version to show.
- Create two separate FlexCards and manually swap them on the Lightning page whenever the account status changes.