> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sample 3. Step 5: Detect the name of the Delivery Address field with a kwDeliveryAddress element

> Detect the Delivery Address field name with a kwDeliveryAddress Static Text element, setting search text, error percentage, and area constraints.

Analysis of the test images shows that you can use the string `DeliveryAddress` as the keyword for the **Delivery Address** field name. Set the maximum error percentage to 20 percent, which for a 15-letter string allows no more than 3 errors in the whole string.

Letter case does not affect the search; it only makes the text more readable. Determine the maximum number of errors by trial and error.

For more information about the parameters of a Static Text element, see [Static Text](/flexi-capture/fls/template/static-text).

## Create the kwDeliveryAddress element

<Steps>
  <Step title="Create the Static Text element">
    In the **InvoiceHeader** element, create an element of type [Static Text](/flexi-capture/fls/template/static-text) and name it **kwDeliveryAddress**.
  </Step>

  <Step title="Set the search text">
    Click the **Static Text** tab. In the **Search text** field, enter `DeliveryAddress`. Set **Max error percentage** to 20.
  </Step>

  <Step title="Add the search constraints">
    Click the **Advanced** tab. The **Delivery Address** field is in the upper third and the left third of the image. In the **Advanced pre-search relations** field, set this [additional search constraint](/flexi-capture/fls/template/advanced-constraints): look for the object in the left third and the upper third of the image. In the [FlexiLayout language](/flexi-capture/fls/code/general-code):

    ```text theme={null}
    Above: PageRect.Top + PageRect.Height/3;
    LeftOf: PageRect.Left + PageRect.Width/3;
    ```
  </Step>

  <Step title="Verify the match">
    Match the FlexiLayout with the test images and confirm that FlexiLayout Studio detects the element on all the images where applicable.

    <Tip>
      To match the FlexiLayout with all the test images, use these shortcut keys:

      * Activate the **Batch** window.
      * Press **Ctrl+A** to select all pages.
      * Press **Ctrl+E** to match the FlexiLayout.
    </Tip>
  </Step>
</Steps>
