--- title: "Toggling the Language on a Form From English to Spanish" slug: "toggling-the-language-on-a-form-from-english-to-spanish" updated: 2021-03-12T15:05:27Z published: 2021-03-12T15:07:13Z canonical: "documentation.decisions.com/toggling-the-language-on-a-form-from-english-to-spanish" --- > ## 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. # Toggling the Language on a Form From English to Spanish 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.13.0 | | **Root Folder** | Example Lab - Toggling Form Language | | **Modules** | None | | **Dependencies** | None | This Example Lab Project demonstrates how to dynamically change the language in a Form from English to Spanish. --- ## Explanation This Example Project uses the **label** Form components with the "**Text from Data Name**" checkbox selected in the properties panel. This allows the data that's passed to the label to be created using **Data Flows** and changed without the need for another label to be displayed. When the Form is first run the labels are populated in English by running the "**Populate Labels in English**" Flow. This Flow is very simple, the only edits that were done to the Flow are the start step was connected to the end step and the outputs were all set to the constant type. Here the user can enter the original Engish text that is desired to be displayed in the Form. Once the "En Espanol?" box is checked the second Data Flow named "**Update Label Language**" is run. This Flow has a **R****ule** which executes as true if the button is checked when the Flow was initiated. The true path of the rule uses a **Create Data step** to create a new output for each label with the Spanish translation. If the rule returns false another **Create Data step** is used to output the original English text values again. The Rule in this Flow is necessary because without it the user would be unable to toggle back to English once they toggled to Spanish for the first time. This is because the "Update Label Language" Flow is run every time the checkbox value is changed, therefore without the rule to verify the status of the checkbox the labels would simply be populated with the same Spanish text each time the Flow ran. Reference Articles[Using the Create Data Step](https://documentation.decisions.com/docs/using-the-create-data-component) [Data Flows in a Form](https://documentation.decisions.com/docs/using-flow-data-form) [Using Rules](https://documentation.decisions.com/docs/using-rule-steps-in-a-flow) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2021-01-19_09h45_42.png)![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2021-01-19_09h46_04.png) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2021-01-19_09h46_11.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.13.0 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[ToggleFormLanguage].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BToggleFormLanguage%5D.zip) ---