nerdexam
Salesforce

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.

Workflow/Process Automation

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)
  • A
    92% (33)
  • B
    6% (2)
  • C
    3% (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.

AUse the equals operator and {!$GlobalConstant.True} as the value.Correct

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.

BUse the equals operator and "High Value Customer" as the value.

"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.

CUse the contains operator and {!$GlobalConstant.False} as the value.

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.

DUse the contains operator and "High Value Customer" as the value

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

#Flow#Screen Flow#Decision Element#Boolean Fields

Community Discussion

No community discussion yet for this question.

Full CRT-101 Practice