---
version: "2026.1.0"
language: "en"
---
# Set Element Checkbox

The **Set Element Checkbox** building block checks or unchecks checkbox fields in a **Salesforce** application. It is automatically created when you click a checkbox while recording with the **Salesforce Fusion Recorder** . It also supports checkbox actions inside **grid elements**, enabling automation directly in tabular interfaces.

**Note:** This block works only in browser sessions launched using the **Salesforce Login** block or within an active Salesforce recording session.

Fully expanded, the **Set Element Combo Box** block shows the following properties:  
![image-20260203-102526.png](https://docs.leapwork.com/__attachments/a_349be883b09cacbaf4ccc9d3e8885980b425260623d87c20024a2a81247d03f3/image-20260203-102526.png?cb=2e5928115c29e3a63ba1ab5195596c7a)

**Note:** The screenshot on this page uses the **Elegance Design** , introduced in **2025.3**. If you are using an earlier version, your layout may look different.

## Quick-start

1. Use the **Salesforce Fusion Recorder** and interact with a checkbox in the Salesforce UI so the recorder generates the **Set Element Checkbox** step.

2. Stop the recording, review and optionally adjust the generated step (for example, **Checkbox state** and timeout-related settings), then save the recording so the full recorded flow is added to the canvas.

3. Run the flow when it's ready.

## Building block parameters

Parameters  
* **Block header** : Shows the current title of the block. The title is generated based on the captured element (for example, "Set Email Subscription"), but you can edit it by double-clicking the title.

* **Checkbox state** : Determines whether the checkbox will be checked or unchecked. The state is captured during recording and can be adjusted later in Flow.

* **Fail** : This output connector triggers if the checkbox element cannot be located within the configured timeout behavior. Use it to add fallback conditions or error handling when the target element is missing.

* **Default timeout** : Controls whether the block uses the default timeout from the flow settings or a custom timeout value.

* **Timeout (sec)** : Specifies how long the block waits for the checkbox to become available before triggering **Fail** . This field is used when **Default timeout** is not selected.

  **Note:** All cases have a **global timeout** configured in the **Settings** panel. This is unrelated to the timeout of a single building block. However, a running case is automatically cancelled if it runs longer than the global timeout.

## Resources

|                                                 **Topic**                                                 |                                                  **Description**                                                  |
|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|
| [Flows FAQ](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/flows-faq.md)                                                   | Common questions about creating, running, and managing flows in Leapwork.                                         |
| [Flows Troubleshooting](https://docs.leapwork.com/troubleshooting/latest/leapwork-flow-troubleshooting/flows-troubleshooting.md)   | Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork. |
| [Salesforce FAQ](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/salesforce-faq.md)                                         | Frequently asked questions about Salesforce                                                                       |
| [Salesforce Fusion Recorder](https://leapworkdocumentation.atlassian.net/wiki/spaces/ARM/pages/256016385) | How to use the Salesforce Fusion Recorder                                                                         |