> ## 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 22: Describe the name of the Total fields with a kwTotal element

> Spot the shared name of the Total Quantity and Total Amount fields with a kwTotal Static Text element matching TotalChf and CarriedOver keywords.

The shared name of the **Total Quantity** and **Total Amount** fields may appear as the keyword `TotalChf` or `Carried Over`, in the lower left part of the page.

<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 **kwTotal**.
  </Step>

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

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

  <Step title="Add the search constraint">
    Click the **Advanced** tab. The name appears in the left half of the page, and the sought string is nearest to the top edge of the page. In the **Advanced pre-search relations** field, set this [additional search constraint](/flexi-capture/fls/template/advanced-constraints): look for the object in the left half of the page, and look for the object nearest to the top edge of the page. In the [FlexiLayout language](/flexi-capture/fls/code/general-code):

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

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