> ## 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 4. Step 7.3: Name of Quantity column, kwQuantity element

> Identify the Quantity column name with a kwQuantity Static Text element matching Qty, Quantity, ORDERED, or QtyNet while excluding the ExtraQtyTag region.

Rely on the already detected **kwDesignation** and **ExtraQtyTag** elements to describe this name.

## Create the kwQuantity element

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

  <Step title="Enter the search text">
    Click the **Static Text** tab. In the **Search text** field, type `Qty|Quantity|ORDERED|QtyNet`.
  </Step>

  <Step title="Set the maximum error percentage">
    Set **Max error percentage** to 35.
  </Step>

  <Step title="Exclude the ExtraQtyTag region">
    Click the **Search Constraints** tab and exclude the already detected `SearchElements.TableHeader.ExtraQtyTag` element from the search area.
  </Step>

  <Step title="Add position relations">
    To place this name on the same level as the **Designation** name, click the **Relations** tab and specify the additional constraints described in [Step 7.2](/flexi-capture/fls/tutorial4/4step7-2).
  </Step>

  <Step title="Add a pre-search condition">
    To optimize the search, do not search for the name if the **Designation** name is not detected, as described in [Step 7.2](/flexi-capture/fls/tutorial4/4step7-2).
  </Step>

  <Step title="Add whole-word matching">
    In **Advanced pre-search relations**, specify these additional search constraints:

    ```text theme={null}
    WholeWordMode: true;// Only whole words will be considered as hypotheses.
    MaxGapInLine: 20dt;// This is the maximum distance between adjacent characters.
    ```
  </Step>

  <Step title="Match the FlexiLayout">
    Match the FlexiLayout to confirm that the element is detected on the first page of the document.
  </Step>
</Steps>
