> ## 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 6.4: The final part of the document, ShortFooter element

> Configure the ShortFooter Static Text element to find the word Total only when LongFooter is not detected, excluding the ExtraTag region from the search.

## Create the ShortFooter element

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

  <Step title="Enter the search text">
    Click the **Static Text** tab. In the **Search text** field, type `Total`.
  </Step>

  <Step title="Exclude the ExtraTag region">
    Click the **Search Constraints** tab and exclude the already detected **ExtraTag** element from the search area of the **ShortFooter** element. This prevents FlexiLayout Studio from finding the word `Total` in the table name:

    * Click **Add...** next to the **Exclude regions of elements** field.
    * Select **ExtraTag** from the list of elements.
    * Click **OK**. The `SearchElements.InvoiceFooter.ExtraTag` string appears in the **Exclude regions of elements** field.
  </Step>

  <Step title="Add a position relation">
    Because the search text always appears below the **Description** column name, click the **Relations** tab and specify this relation:

    * Below the **AddTag** element, **Offset** = 100.
  </Step>

  <Step title="Add the fallback constraint">
    The **ShortFooter** element is searched for only if **LongFooter** is not detected. To implement this condition, specify the following in **Advanced pre-search relations**: do not search for the element if **LongFooter** is detected. In the [FlexiLayout language](/flexi-capture/fls/code/general-code):

    ```text theme={null}
    If not LongFooter.IsNull then Dontfind();
    ```
  </Step>
</Steps>
