CRT-101 · Question #211
Cloud Kicks wants to update a screen flow so that if the checkbox field High Value Customer is set to true, the first screen is skipped and the user is directed to the second screen. How should the…
The correct answer is A. Use the equals operator and {!$GlobalConstant.True} as the value. To skip a screen based on a checkbox field in a flow decision element, you must compare the boolean field using the equals operator against the global constant for True.
Question
Cloud Kicks wants to update a screen flow so that if the checkbox field High Value Customer is set to true, the first screen is skipped and the user is directed to the second screen. How should the administrator configure the decision element?
Options
- AUse the equals operator and {!$GlobalConstant.True} as the value.
- BUse the equals operator and "High Value Customer" as the value.
- CUse the contains operator and {!$GlobalConstant.False} as the value.
- DUse the contains operator and "High Value Customer" as the value
How the community answered
(36 responses)- A92% (33)
- B6% (2)
- C3% (1)
Why each option
To skip a screen based on a checkbox field in a flow decision element, you must compare the boolean field using the equals operator against the global constant for True.
Checkbox fields store boolean values, not strings. In Flow Builder, the correct way to evaluate a checkbox set to true is to use the equals operator paired with {{!$GlobalConstant.True}}, which represents the boolean true value. This combination correctly evaluates the field value and routes the flow to the second screen when the condition is met.
"High Value Customer" is the field label, not a valid boolean value, so comparing a checkbox field to that string will never produce a match.
The contains operator is used for text fields, not boolean checkbox fields, and using False would route users away from the second screen rather than toward it.
The contains operator is inappropriate for boolean checkbox fields, and "High Value Customer" is a field label, not a valid comparison value.
Concept tested: Flow decision element boolean field evaluation
Source: https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_decision.htm
Topics
Community Discussion
No community discussion yet for this question.