--- title: "Form Links - Lasernet Finance and Operations Connector User Guide " slug: "form-links" description: "A Form link is a functionality that enables you to add Lasernet buttons in the system, which will trigger a Lasernet print or reprint of a report." updated: 2025-10-27T10:21:29Z published: 2025-10-27T10:21:29Z canonical: "kb.lasernetgroup.com/form-links" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.lasernetgroup.com/llms.txt > Use this file to discover all available pages before exploring further. # Form Links In Lasernet FO Connector, Form Links enable you to add **Lasernet** buttons in the system, which trigger a Lasernet print or reprint of a report. It is possible to place a Form Link in any Dynamics 365 form. The Form Links can be managed for each report. To do so, follow these steps: 1. Navigate to **Lasernet** > **Common** > **Reports**. 2. Select the report and click **Setup** in the Action pane. Select **Form links** from the **Links** group. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-17ST74YJ.png) 1. On the page that opens, you can specify where the **Lasernet** buttons are added: ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-R9TWAOH8.png) | Settings | Definition | | --- | --- | | Form name | Name of the form in AOT. This is the name of the form in Dynamics 365 FO where the **Lasernet** button should be added. | | Control name | Name of the control in the form. The **Lasernet** button will be added before or after this control on the form. | | Position | Position of the **Lasernet** button in relation to the control. | | Properties | Definition | | --- | --- | | Menu labels | Defines the label for **Lasernet** menu button on forms. | | Label | Defines the label for the **Lasernet Print** button. | | Name | Name of the image to add to the **Lasernet** button. | | Hide archive | Defines whether to hide or show the archive menu item on the selected form. | | Single button | Shows the **Lasernet** button as a single button. | | Multi-select | Sets up a report run scenario when multiple records are selected. | | Data source | Identifies the form data source that is used for multi-selection. | | Background print | Enables users to process reports in the background (batch mode). | | Print controls | Definition | | --- | --- | | Copy preview | Defines standard buttons used when previewing and resending reports from Dynamics 365 Finance and Operations Journals. Required for replacement query reports. | | Original preview | Defines standard buttons used when previewing and resending reports from Dynamics 365 Finance and Operations Journals. Required for replacement query reports. | | Resend | Defines standard buttons used when previewing and resending reports from Dynamics 365 Finance and Operations Journals. Required for replacement query reports. | **Condition**: A condition can be used to control when to show or hide the Form Link. - **None**: Will always show this Form Link as active. - **Code**: Can use an expression. Will show this Form Link as active if the code condition expression is **True** or **1**, and will make this Form Link inactive if the code condition expression is **False** or **0**. - **Query**: Can use query filters and ranges. This Form Link will be shown as active if the query filters or ranges are met, and will be made inactive if the query filters or ranges are not met. Clicking the **Load default** button can automatically identify the setup for the following reports: ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-3AC8JEDV.png) - SalesConfirm - SalesQuotation - SalesQuotationConfirmation - SalesPackingSlip - SalesInvoice - FreeTextInvoice - PurchPurchaseOrder - PSAPurchaseOrder - PurchPackingSlip - PurchReceiptsList - VendInvoiceDocument - CustCollectionJour - CustInterestNote Values for such fields as **Form name**, **Control name**, and **Position**, as well as values for all the fields of the **Print controls** section, are automatically defined. The **Hide archive** toggle button enables you to define whether to hide the archive on the selected form. The **Defaults** button, located in the **Print controls** section, enables you to access the **Copy**, **Original**, or **Resend** button for the selected form name. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-507UMKMB.png) ## How to Add a Form Link to a Form To add a **Lasernet** button using a Form Link, you will need to: - Identify the report for which you will create a **Lasernet** button. - Identify the name of the form where the **Lasernet** button will be added. - Identify the position of the **Lasernet** button on the form. - Create and configure a Form Link for the report. The following steps illustrate how to add a Form Link to a form. #### Identify the Name of the Form Where the Lasernet Button Will Be Added 1. Navigate to the form in Dynamics 365 Finance and Operations where the **Lasernet** button will be added. In this example, we will use **Project management and accounting** > **Quotations** > **Project quotations**. 2. Select the quotation, click **Quote** in the menu bar, and then **Quotation confirmation journal**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-M6907K3T.png) 1. Right-click the form and select **Form information** to find the **Form name.** ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-QIWHVUKM.png) #### Identify the Position of the Lasernet Button on the Form 1. Identify where you would like to add the **Lasernet** button. You can add the **Lasernet** button before or after an existing control. 2. Right-click an existing control and select **Form information** to find the **Control Name**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-BPK8O8CD.png) #### **Cr**eate and Configure a Form Link for the Report 1. Navigate to **Lasernet** > **Common** > **Reports** and select the report. On the Action pane, click **Form links**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-99440O4A.png) 1. Click **New** to create a new Form Link. Add the form name to the **Form name** field. The **Control name** and **Position** enable you to determine where you would like to place the **Lasernet** buttons. Choose a control name from the dropdown and a position: your button will appear before or after the specified control. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-QBVY4RL9.png) 1. If you are using a replacement query for an SSRS report or an SSRS report enabled for Lasernet, the Form Link setup will include a **Print controls** section. Select the controls that perform the print functions for the standard report for the **Copy preview**, **Original preview**, and **Resend** fields, respectively. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-PMOWJ7T2.png) The **Defaults** button attempts to locate the **Copy**, **Original**, or **Resend** button for the selected form name and SSRS reports. 1. Navigate back to the form and verify that the **Lasernet** button has been added. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-860FLIO3.png) ## Dialog Setup Dialog Setup is a Lasernet FO Connector function that enables you to customize the dialog that appears when you run a Lasernet report. If you have a custom query with a Form Link, you can use Dialog Setup to customize the behavior and options of the **Lasernet** button when it is clicked. Examples of behaviors you can customize with Dialog Setup include adding parameters to the dialog that enable the user to make selections, adding notes when printing the report, and adding default ranges so the report recognizes the currently selected record and runs on that record. ### **Dialog Setup Locations** Dialog Setup can be found in two places: - **Lasernet** > **Common** > **Reports**, on the Action pane of the Lasernet query report. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-OYMMC0GW.png) - **Lasernet** > **Common** > **Reports**, in the **Form link** of a Lasernet query report. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-QHYMFS2X.png) We will review the **Dialog setup** button found in the Lasernet query report’s Form Link. This Dialog Setup controls the dialog the user sees when they run the query report from the **Lasernet** button (Form Link). ### **Dialog Setup Settings** After clicking **Dialog setup**, a form will be displayed, which includes a **Default ranges** button and three fast tabs: **General**, **Parameters**, and **Details**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-VBZ7EOC9.png) The **General** tab contains the following settings: - **Execution**: Indicates how the report dialog shall be used when running a report. - **Set focus**: Selects the control that should be selected when the form opens. - **Submit when modified**: Automatically clicks **OK** after field modification. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-LVWD7T98.png) In the **Parameters** FastTab, you can add and customize the parameters on the dialog. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-1DPDMOCN.png) When the **Show** checkbox is selected for a parameter, the parameter will appear as an option on the dialog, enabling the user to modify it. **Control name** is a **Language Text** that enables your parameters’ names to be translated automatically to the user’s language. Using **Default value** you can hardcode a value for this parameter or use the Expression Editor to dynamically select the default value. **Range** enables the input in the parameter field to be read as a range rather than a single value. The **Load Instruction** column enables you to determine how the parameter field will load when the dialog pops up at a report run: - **From last value**: The value used in the dialog on the last run of this report will load. - **From default – fixed**: The value indicated in the **Default value** column will load and cannot be changed by the user running the report. - **From default**: The value indicated in the **Default value** column will load, and the user can change it. - **Clear**: No value will load. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-LNGCI685.png) Lastly, the **Details** FastTab enables you to set properties on the parameter that is currently selected. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-7BPVRCZK.png) The **Lookup** group has two fields: **Extended data type name** and **Enum name**. If an extended data type or an enum name exists in the system that corresponds to the parameter you have added, selecting it here creates a dropdown on the parameter in the dialog for the user to choose from. - **Extended data type name**: Name of an extended data type in the AOT. - **Enum name**: Name of the enum in the AOT. The **Default Ranges** button on a Dialog Setup opens the default query ranges form for the report. This form allows you to set up ranges and filters for report fields. On a Dialog Setup, you can use **Default ranges** to assign **Parameters** to fields in your report. This gives the user running the report the ability to filter and control the report's output. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-DSOEVDB4.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-R4MO5DYL.png) ### How to Configure a Form Link Dialog Form Links for custom queries can be customized through the Dialog Setup. A common use case is the following: a **Lasernet** button is added to a list page. It is required that the **Lasernet** button recognizes the record that is selected on the list page and runs the report based on the selected record. This use case will need to be addressed by configuring the Form Link Dialog Setup. Form Links can use the value forms within the **Dialog setup** > **Default Ranges**. Forms provide information about the selected record. This is useful because using forms will dynamically identify the selected record when the **Lasernet** button is triggered, and the query will run based on this value. The format for using forms is the following: `Forms.[FormName].[TableName].[Field]` The following example guides you through setting up a Form Link Dialog Setup for a custom query using the **Forms** value. Example: Query with **Salestable** and **SalesLine** with a **Lasernet** button on the **SalesTableListPage**. 1. Navigate to **Lasernet** > **Common** > **Reports** and select the report. On the Action pane, click **Form links**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-IDW1EG6I.png) 1. Click **Dialog setup**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-CVGCOBGM.png) 1. On the dialog that appears, click **Default ranges**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-KZ9P21UL.png) 1. In the **Default query ranges** dialog, locate or add the fields that will be used as a range. Clicking the **Expression editor** button provides the option to dynamically set the range value. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-EQCW6PTX.png) 1. On the Expression Editor that appears, open the dropdown on the **Select Value** field and select **Forms**. 2. Open the dropdown again to see the list of forms. Select the **Form name** associated with your Form Link. 3. Open the dropdown again to see the tables. Selecting the table provides information about the selected record when the **Lasernet** button is triggered. 4. Open the dropdown again to see the list of fields for the selected table. Select the field associated with your range. The following example illustrates a report range in which the field **SalesID** is used from the selected record on the list page when the **Lasernet** button is clicked. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-HKJPKPBY.png) 1. Click **OK** to close the Expression Editor. Select the **Show** checkbox on the **Default query ranges** dialog. This setting is optional. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-5K9JQJSD.png) 1. Click **OK** to close the dialogs and save the changes. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-QB3ZCUXW.png) 1. Navigate to the form with the **Lasernet** button. In this example: **Accounts receivable** > **Orders** > **All sales orders**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-VB6QNZ46.png) 1. Select a record from the form and click the **Lasernet** button. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-PQHEUPX6.png) 1. On the print dialog that appears, expand **Records to Include** to verify that the selected record was correctly identified. This will only be visible if **Show** was enabled previously. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-M97EP9F5.png) 1. Print the report and note that it ran on the selected record. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-AWXDP9F0.png) ### How to Use Labels and Single Button #### Control the Menu Label When a single button is not used, the Form Link will appear on a form as a **Lasernet** menu button with a dropdown selection of multiple buttons. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-7WEMGU3C.png) The **Menu label** field in the Form Link’s **Properties** FastTab will define the label for the **Lasernet** menu button. The **Single button** toggle must be set to **No** to use the **Menu label** field. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-LTT8VM1E.png) Selecting the dropdown will enable you to select a **Language Text** as your menu button’s label. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-HEPQA8PB.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-CSNZPULE.png) Navigate to your **Lasernet** button and note that the **Lasernet** menu button displays the value corresponding to the **Menu label** selected on the Form Link (in this case, **Invoice summary** corresponding to **@SYS306731**). If a Language Text is used, this label will automatically translate into the user’s language. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-2DGF3LD5.png) #### Control the Label The **Label** field in the Form link’s **Properties** FastTab will define the label for the **Lasernet Print** button. When a single button is not used, the Form Link will appear on a form as a **Lasernet** menu button with a dropdown selection of multiple buttons, including the **Lasernt Print** button. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-JP3Y6HR7.png) Review the “Single button” section of this guide for more information on the label behavior for single buttons. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-2ZK430GN.png) Selecting the dropdown will enable you to select a **Language Text** as your menu button’s label. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-4B6H8PL8.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-RST0ZCEJ.png) Navigate to your **Lasernet** button and note that the **Lasernet Print** button displays the value corresponding to the label selected on the Form Link (in this case, **Invoice Summary Print** corresponding to **@SYS306731**). If a Language Text is used, this label will automatically be translated into the user’s language. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-3QOA9XGP.png) It is possible to hide the **Archive** option (visible in the image) by toggling the **Hide archive** button to **Yes**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-I1I30YS2.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-ZKS6Y52O.png) #### Set up a Single Button When toggled to **Yes**, the **Single button** option on a Form Link’s **Properties** FastTab will show the **Lasernet** button as a single button. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-Z969YXZM.png) The single button will display the default label **Print** if the **Label** field of the **Properties** FastTab is not defined. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-N6F9MYWL.png) Define the **Label** on the Form Link's **Properties** FastTab to rename the single **Lasernet** button. Selecting the dropdown will enable you to select a **Language Text** as your button’s label. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-C1USH49I.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-UFG1D5JA.png) The benefit of using a Language Text is that the button’s label will be automatically translated into the user’s language. The following example shows a single button with a label translated into **en-us** and **da**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-V8DHIP16.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-GQNTM0I6.png) ### Condition You have the option to hide or show the **Lasernet** button for a query report by using an expression. Example ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-SRWNMYIC.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-CV32V9YJ.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-HJTYULR2.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-IU8L452Y.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-F9HMYWB4.png) It is also possible to control when users are allowed to click your button. **How it looks when active:**![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/TmJ48ZJy1CzTkEerpzayH_4SPpjMyFLSUQ.png) **How it looks when inactive:**![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/Fwz5cz5Vy0XPiDzokcwVdTGCd0cGLPbesw.png) As for standard Dynamics 365 Finance and Operations, the button is disabled. Follow these steps to set conditions for an active Form Link: 1. On the **Form link** page, under **Condition**, select a condition code and then click **Edit**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-5RJLVS5I.png) 1. In the window that appears, select **Expression** from the **Expression** drop-down combo box. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-8JQXX7HE.png) Tip After you choose **Expression**, paste **Forms.CustFreeInvoice.CustInvoiceLine.Description <> "Invoiced"** to **Expression definition**. This way, you will not need to go through the configuration described below. 1. In the **Expression definition** window, select **Forms**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-WTQ5AWJB.png) 1. Choose the form name and then the table name. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-9ELC4Q1H.png) 1. Once you have defined your field name, it is time to choose **<>** in **AVAILABLE FUNCTIONS**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-4MA2X1LV.png) 1. Click **Insert**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-GXYA5S72.png) 1. To enable the possibility of adding the “Invoiced” status, click **Select value**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-1DE35SYJ.png) 1. Type **Invoiced** and click **OK** to save all the settings. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-GR7HORTD.png) The end result should be: ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-ZTJ6ZPN6.png)