In a FlexCard with five state elements, four have conditions. When testing with sample data that makes two states evaluate to true, which state will display?

Study for the OmniStudio Developer Test. Focus with flashcards and multiple-choice questions, each with hints and explanations. Get ready for your exam!

Multiple Choice

In a FlexCard with five state elements, four have conditions. When testing with sample data that makes two states evaluate to true, which state will display?

Explanation:
FlexCard prioritizes which state to show by the vertical order of the state elements on the canvas. Each state has a condition, and when the card runs, all conditions are evaluated. If more than one state is true, the one that sits closest to the top of the FlexCard canvas (the top-most true state) is the one displayed. That’s why, even if two states evaluate to true, the display is determined by which of those true states is highest on the canvas. In your example, the state that is nearest the top among the true ones will appear.

FlexCard prioritizes which state to show by the vertical order of the state elements on the canvas. Each state has a condition, and when the card runs, all conditions are evaluated. If more than one state is true, the one that sits closest to the top of the FlexCard canvas (the top-most true state) is the one displayed. That’s why, even if two states evaluate to true, the display is determined by which of those true states is highest on the canvas. In your example, the state that is nearest the top among the true ones will appear.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy