> ## 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 23: Detecting the name of the Country field with a kwOrigin element

> Step 23 of FlexiLayout Studio Sample 3: detect the Country field name with a kwOrigin Static Text element and a left-half page search constraint.

Use an element of type [Static Text](/flexi-capture/fls/template/static-text) and the keyword “OriginOfGoods:” to detect the name of the Country field.

To create the kwOrigin element:

1. In the Footer element, create an element of type [Static Text](/flexi-capture/fls/template/static-text) and name it **kwOrigin**.
2. Click the Static Text tab.
3. In the Search text field, enter the text to find: “**OriginOfGoods:**”.
4. Click the Relations tab.
5. Since the **Country** field can only be located below the footer of the table, set the following search constraint:
   * Below the element `Footer.kwFooter`, Offset = 0.
6. Click the Advanced tab.
7. Since the Country field is located in the left half of the image, set the following [additional search constraint](/flexi-capture/fls/template/advanced-constraints) in the Advanced pre-search relations: Look for the object in the left half of the page. In the [FlexiLayout language](/flexi-capture/fls/code/general-code):\
   `LeftOf: PageRect.Left + PageRect.Width/2;`
8. Try matching the FlexiLayout with the test images and make sure that the program successfully detects the element on all the images where applicable.
