> ## 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: Detecting 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 reveals that the string "DeliveryAddress" may be used as the keywords for the Delivery Address field name. Set the maximum percentage of errors to 20 percent, that is, for a 15-letter string, no more than 3 errors in the entire string.

<Note>
  The case of the letters does not affect the search and is only used to make the text more readable. The maximum number of errors is determined by trial and error. For more information about the parameters of a Static Text element, see [Static Text](/flexi-capture/fls/template/static-text).
</Note>

To create the kwDeliveryAddress element:

1. In the **InvoiceHeader** element, create an element of type [Static Text](/flexi-capture/fls/template/static-text) and name it **kwDeliveryAddress**.
2. Click the Static Text tab.
3. In the Search text field, enter the text to find: "**DeliveryAddress**".
4. Set the Max error percentage to 20.
5. Click the Advanced tab.
6. Since the **Delivery Address** field is in the upper third and in the left third of the image, set the following [additional search constraint](/flexi-capture/fls/template/advanced-constraints) in the Advanced pre-search relations field: Look for the object in the left third of the image. Look for the object in the upper third of the image. In the [FlexiLayout language](/flexi-capture/fls/code/general-code):\
   `Above: PageRect.Top + PageRect.Height/3;`\
   `LeftOf: PageRect.Left + PageRect.Width/3;`
7. Try matching the FlexiLayout with the test images and make sure that the program successfully detects the element on all the images where applicable.

<Note>
  To match the FlexiLayout with all the test images, you can use the shortcut keys:
</Note>

* Activate the **Batch** window
* Press **Ctrl+A** for **Select All** pages
* Press **Ctrl+E** for **Match FlexiLayout**
