--- title: "Add a New Form with Criteria - Lasernet Form Engine" slug: "add-new-form-with-criteria" description: "In this exercise, you can learn how to add a new form, design a report by using XML as input data, and set up the required criteria to recognize the form." tags: ["Form Editor", "Criteria", "Lasernet Core 11"] updated: 2026-10-22T08:45:05Z published: 2026-10-22T08:45:05Z canonical: "kb.lasernetgroup.com/add-new-form-with-criteria" --- > ## 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. # Add New Form with Criteria In this walkthrough, you will learn how to create a new form and design a report by using XML as input data. You will also set up the required criteria to recognize the form. The form criteria are used by the form engine to locate key data in specific locations within the input data and recognize a form in the form list. > [!NOTE] > Note > > If no criteria are specified for a form, the form is not processed. ## Walkthrough Download and import the attached` 02.Add New Form with Criteria`configuration in Lasernet Developer. Then, follow these steps: 1. Select **Forms** from the **Tools** panel to open a form area. 2. Click the **Add** button on the top toolbar. Alternatively, drag the **Form** item to the form area, or right-click inside the form area and select **Add** from the context menu. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-AOU19VGE.png) 1. Enter the name of the new form in the **Name** field. 2. Select **XML** as the Input Format. 3. Select **EMF** as the Output Format. 4. Click **OK** to confirm changes. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-WJ2X7QAR.png) 1. Click the **Thumbnails** button to view the forms as thumbnails. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-3KZKYY6D.png) 1. Double-click the form to open the Form Editor. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-009PEY9V.png) Before you can set up a new form, you must open a grab file, which will show in the input view window of the Form Editor. A grab file contains the output data as delivered from the application for which you want to create a report. 1. Click **Grab** and then select **Open**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-PINUSHBJ.png) 1. Browse to the directory where the relevant grab file is located. This is by default the `Grab` subdirectory of your configuration. 2. Select the `Sample.xml` file and then click **Open**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-SV11TKMC.png) You can set up criteria in the Form Editor input using the **Criterion** tool and then selecting an XPath. You can also manually add a criteria with the help of the **Criteria** dialog. You can access this function by clicking **Criteria** on the **Form** menu. 1. Select the **Criterion** tool from the Developer toolbar to set up the first criteria. Alternatively, add the criteria manually by selecting **Criteria** from the **Form** menu. You can use one or more criteria so the form engine can recognize and process the form. 2. Select the `<FirstCriterion>` element in the input data. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-TE4XL42B.png) 1. Accept the default settings for the selected **XPath**, which is **Report**/**FirstCriterion**, as well as the **Match** value, which is **Sample**. Select the operator needed to match a value from the **Operators** drop-down menu, which in this case is **contains**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-129RL962.png) 1. Click **OK** in the **Criteria** dialog that opens. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-BKFZP68C.png) 1. Repeat steps 13–16. Select `<SecondCriterion> `and set the **contains** operator to match the **Lasernet** value. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-R6ABC6E6.png) 1. Repeat steps 13–16. Select `<ThirdCriterion>` and set the **=** operator to match the **7** value. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-1EPOHKDS.png) 1. The input view shows three objects highlighted in dark grey, indicating that the form contains three criteria to recognize the XML data. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-F5BZ6LEX.png) 1. Select **Criteria** from the **Form** menu to edit the criteria. Each criteria has a name defined by a letter used in a form expression. You can manually add new form criteria, edit the existing list, or move items in the list up or down. Ensure that the form expressions are listed in the expected order after moving a criteria up or down. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-AQE3UDVG.png) ## Attachments - [02.-Add-New-Form-with-Criteria(1).lnconfigx](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/02.-Add-New-Form-with-Criteria(1).lnconfigx)