--- title: "Opening a Form in a New Window" slug: "opening-a-form-in-a-new-window" updated: 2021-03-12T15:05:25Z published: 2021-03-12T15:07:04Z canonical: "documentation.decisions.com/opening-a-form-in-a-new-window" --- > ## 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. # Opening a Form in a New Window 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** | 5.13.1 | | **Root Folder** | Example Lab - Open Form in New Window | | **Modules** | None | | **Dependencies** | None | This Example Lab project demonstrates how to open a Form in another window. --- ## Explanation The first Form in this example has a data grid with an "Open URL" button. When one of the data grid lines is selected, a data Flow executes that generates a URL based on the email in that line. In the data Flow, the **String Replace Value** step named "Replace Tokens In Text" has a URL with variables in brackets. When ran, those variables are replaced with the variables in the Flow. This newly created URL is then output from the Flow, to be used on the Form. On the Form, the "Open URL Button" Uses this output URL to open the second Form in a new window. The second Form uses the email passed in through the URL as an input to dynamically change the label depending on which line was selected. Reference Articles[Form Controls](https://documentation.decisions.com/docs/formcontrolglossary) [Portal Chrome Options](https://documentation.decisions.com/docs/portal-chrome-options-url-paths) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-536(1).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 5.13.1 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[OpenFormInNewWindow].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BOpenFormInNewWindow%5D.zip) ---