> ## 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 17: Detect the name of the Unit Price column with a kwUnitPrice element

> Pinpoint the Unit Price column name with a kwUnitPrice Static Text element that searches to the right of the detected Quantity column in the FlexiLayout.

The **Unit Price** column always appears to the right of the **Quantity** column. Use that fact to detect its name with a [Static Text](/flexi-capture/fls/template/static-text) element.

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

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

  <Step title="Add the search constraint">
    Click the **Advanced** tab. The **Unit Price** column name appears to the right of the **Quantity** column name, so set this [additional search constraint](/flexi-capture/fls/template/advanced-constraints) in the **Advanced pre-search relations** field: if the **kwQuantity** element was detected, look for the **kwUnitPrice** element to the right of it. In the [FlexiLayout language](/flexi-capture/fls/code/general-code):

    ```text theme={null}
    If Not (TableHeader.kwQuantity.IsNull) Then
    RightOf: TableHeader.kwQuantity, 0 * dot;
    ```
  </Step>

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