> ## 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 21: Describe the footer of the table with a kwFooter element

> Identify the invoice table footer with a kwFooter Static Text element that lists every keyword variant, from Discount to Carried Over, in one search.

The footer of the table can begin with the keywords `Carried Over`, `Total Chf`, `Goods total excl. tax`, `Discount`, and `SPECIAL DISCOUNT`. List all these variants in the search text of the [Static Text](/flexi-capture/fls/template/static-text) element.

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

  <Step title="Enter the search text">
    Click the **Static Text** tab. In the **Search text** field, enter the text to find: `Discount|TotalCHF|SPECIALDISCOUNT|Carriedover|Goodstotalexcl.tax`.
  </Step>

  <Step title="Add the search constraint">
    Click the **Advanced** tab. The sought keywords appear in the left half of the image. If FlexiLayout Studio detects several of the keywords, only the topmost one is of interest. 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>

<Tip>
  When a field name can differ from image to image, list all the possible variants of the name, or at least most of them. Ask for more test images or contact the customer to learn the possible field name variants on documents of this type.
</Tip>
