Question 1 of 30
In a Salesforce OmniStudio application, a developer is tasked with customizing the styling of a FlexCard to enhance user experience. The FlexCard needs to display customer data dynamically, and the developer wants to ensure that the card\'s background color changes based on the customer\'s status (Active, Inactive, or Pending). The developer decides to use CSS variables for this purpose. Which approach should the developer take to implement this dynamic styling effectively?
Define CSS variables for each status in the FlexCard's CSS file and use JavaScript to update the card's background color based on the customer's status.
Use inline styles directly in the FlexCard's HTML to set the background color based on the customer's status.
Create separate CSS classes for each status and toggle these classes in the FlexCard based on the customer's status.
Utilize a single CSS class with a fixed background color and rely on the Salesforce platform to manage the status changes.

Preparing for SalesForce Certified OmniStudio Developer Certified OmniStudio Developer? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free