Loading
Prepare for Email to Become the Default Login ExperienceRead More
Automate Your Business Processes with Salesforce Flow
Checkbox Screen Input Component

Checkbox Screen Input Component

Offer flow users a yes-or-no choice with a checkbox.

Required Editions

Configure the Checkbox Component

Attribute Description
API Name

The API name of the component.

An API name can include underscores and alphanumeric characters without spaces. It must begin with a letter and can’t end with an underscore. It also can’t have two consecutive underscores.

Default Value Pre-populated value for the component. If the associated screen isn’t run or the conditions for component visibility aren’t met, the stored value of the component is null.
Disabled

If set to true, the user can’t modify the value. The default value is false.

This attribute accepts a resource with a Boolean value.

Label The text that appears with the screen component that tells the running user how to use it.
Provide Help Give your users more context with this screen component. The text you enter is available in an info bubble next to the component.
Note
Note In flows configured to run on API version 64.0 or later, you can use the Is Null operator when referencing Boolean (Checkbox and Toggle) screen components in a conditional visibility expression. In earlier API versions, expressions with the Is Null operator don’t identify when Boolean screen components are null.

Set the Component Visibility

Specify the logic that determines when the flow displays the component.

Option Description
When to Display Component

Configure when the component is displayed by using conditional logic.

You can set the components to:

Always
Always display the component.
When all conditions are met (AND)
Display the component when all of the conditions that you define are met. Define at least one condition.
When any condition is met (OR)
Display the component when at least one of the conditions that you define is met. Define at least one condition.
When custom conditional logic is met
Display the component when the condition logic that you define is met. Define at least one condition and specify condition logic.

Validate Input

Provide a formula that evaluates whether what the user entered is valid and the error message to display if invalid.

Option Description
Error Message Specify the error message that appears below the component if the user enters an invalid value.
Formula

Provide a formula expression that returns a Boolean value.

If the formula expression evaluates to true, the input is valid. If the formula expression evaluates to false, the error message appears below the component.

If the user leaves the field blank and the field is required, the flow shows the default error message and not your custom error message.

Specify the Behavior of Values on Revisited Screens

Specify what this component does when a user enters a value, navigates to a previous screen, and then returns to the screen with this component.

Option Description
Use values from when the user last visited this screen The component retains the values that the user specified and doesn’t update the values to reflect changes made on previous screens.
Refresh inputs to incorporate changes elsewhere in the flow

The component updates the user-specified values to reflect changes made on previous screens.

If you pause and then resume the flow, the flow retains user-specified values only in Checkbox, Checkbox Group, Currency, Long Text Area, Multi-Select Picklist, Number, Password, Picklist, Radio Buttons, and Text components.

Usage

When the user selects the checkbox, the screen component evaluates to true. If the user doesn’t select the checkbox, the screen component evaluates to false. If the associated screen isn’t run, the screen component evaluates to null.

Example
Example Let users opt into a marketing campaign, agree to a follow-up call after a purchase, or confirm that they understand an important policy.
 
Loading
Salesforce Help | Article