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

> 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.

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

  <Step title="Enter the search text">
    Click the **Static Text** tab. In the **Search text** field, enter the text to find: `OriginOfGoods:`.
  </Step>

  <Step title="Set the location constraint">
    Click the **Relations** tab. The **Country** field can only appear below the footer of the table, so set this search constraint:

    * **Below** the `Footer.kwFooter` element, **Offset** = 0
  </Step>

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

    ```text theme={null}
    LeftOf: PageRect.Left + PageRect.Width/2;
    ```
  </Step>

  <Step title="Verify the match">
    Match the FlexiLayout with the test images and confirm that FlexiLayout Studio detects the element on every image where it occurs.
  </Step>
</Steps>
