--- title: "Updating A Checkbox Using Data Flow" slug: "updating-a-checkbox-using-data-flow" updated: 2021-03-12T15:05:27Z published: 2021-03-12T15:07:13Z canonical: "documentation.decisions.com/updating-a-checkbox-using-data-flow" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Updating A Checkbox Using Data Flow Example Lab ArticleWhile Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released. --- ## Overview | ## Example Lab Details | | --- | | **Version** | 6.12.1 | | **Root Folder** | Example lab-Updating A Checkbox Using Data Flow | | **Modules** | None | | **Dependencies** | None | This Example lab demonstrates how to use a Data Flow to update checkboxes on a Form. --- ## Explanation The **Main** Form contains the following: one drop-down element, three checkboxes, and one outcome button. The three checkboxes are disabled so users cannot modify them. These checkboxes will be updated by the **Data Flow. The Drop-Down** element is set to static and has the following four options: **"Checkbox 1","Checkbox 2", Checkbox 3", "All Checkboxes".** The **Data Flow** takes in the **Drop-down** selection from the **Main Form.** The **String Match** step evaluates the Flow input and the Flow goes down one of the paths. The **Create Data** step holds the three checkbox Boolean values. Depending on which selection was made from the **Drop-down** on the **Main Form**, the Boolean variables in the **Create Data** step are set to **True or False**. The Data Flow outputs the three Checkbox values. On the Main Form, the outputs of the Data Flow are set to **"Refresh all the components Listening to this data name".** The output name for these outputs need to match the data name of the Checkboxes. The trigger for the **Data Flow** is set the **selection change** on the **Drop-down** element. This configuration will allow the checkboxes to be updated when the Drop-down selection is changed. To test this example, run the **"Run Main Form"** Flow. Reference Articles[Using a Data Flow in a Form - Advanced Example](https://documentation.decisions.com/docs/using-data-flow-form-advanced-example) [Using Data Flow In a Form](https://documentation.decisions.com/docs/using-flow-data-form) [Creating Your First Form](https://documentation.decisions.com/docs/en/creating-your-first-form) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Main%20Form(1).png) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Data%20Flow(4).png) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/data%20flow%20output.png) --- ## Project Download The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.12.1 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[UpdatingACheckboxUsingDataFlow].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BUpdatingACheckboxUsingDataFlow%5D.zip) ---