--- title: "Using Radio Buttons to Run a Data Flow and Return a Value" slug: "using-radio-buttons-to-run-a-data-flow-and-return-a-value" updated: 2021-03-12T15:05:27Z published: 2021-03-12T15:07:13Z canonical: "documentation.decisions.com/using-radio-buttons-to-run-a-data-flow-and-return-a-value" --- > ## 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. # Using Radio Buttons to Run a Data Flow and Return a Value 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 - Populate Form Data Based On Radio Button Selection | | **Modules** | None | | **Dependencies** | None | This Example Lab will demonstrate how to populate different totals on a Form based on a Radio Button selection. --- ## Explanation In this example, different license plates cost different amounts of money, so depending on which the user selects, a different multiplier will be used for the total cost (cost times quantity). On this Form, there is a Data Flow that runs when the user selects a value in the Radio Button. The selection and the quantity are passed into a Data Flow that runs a Truth Table to determine how much the plate costs and then it is multiplied by the quantity. Finally, the total cost is updated as an Output to the Data Flow and is displayed on the Form. Reference Articles[Using Data Flows to Change the Selected Value of a Drop Down List](https://documentation.decisions.com/v6/docs/using-data-flows-to-change-the-selected-value-of-a-drop-down-list) [Using a Data Flow in a Form - Advanced Example](https://documentation.decisions.com/docs/using-data-flow-form-advanced-example) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1602686077943.png) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1602686374135.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[PopulateFormDataBasedonRadioButtonSelection].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BPopulateFormDataBasedonRadioButtonSelection%5D.zip) ---