> ## 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 2. Step 6: Create a document identifier

> Create a document identifier in FlexiLayout Studio by describing the form heading as a required Static Text element with search text and error tolerance.

When processing semi-structured documents in ABBYY FlexiCapture, you typically need to exclude documents that do not belong to the current type. One way to identify a document is to mark at least one element as [required](/flexi-capture/fls/glossary/glossary-main-body#r).

In this case, the document heading makes a good identifier element, because it contains distinct text that the OCR engine can read easily.

<Info>
  An identifier element or set of elements can be described in a predefined Header element (not used in this sample).
</Info>

The document heading only identifies the document as belonging to this type. It is not recognized in ABBYY FlexiCapture.

In the FlexiLayout, describe the document heading as a **Static Text** element.

<Steps>
  <Step title="Open the FlexiLayout tab">
    Click the **FlexiLayout** tab in the FlexiLayout Studio main window.
  </Step>

  <Step title="Select the SearchElements node">
    Select **SearchElements** in the FlexiLayout tree.
  </Step>

  <Step title="Add a Static Text element">
    Select the **Static Text** command in **FlexiLayout → Add Elements → Static Text** or in the shortcut menu of the element.
  </Step>

  <Step title="Name the element">
    In the **Name** field, type a name for the element, for example, **FormHeader**.
  </Step>

  <Step title="Mark the element as required">
    Select **Required element** on the **General** tab, because the document heading is a required element.

    <Frame>
      <img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/tutorial2_6.png?fit=max&auto=format&n=r-nfa7jujx5b9gKX&q=85&s=cb988198dc969489d5b76f1cb1232d90" alt="Screenshot of the General tab of the Properties of SearchElements.StaticText dialog box in ABBYY FlexiLayout Studio, showing the FormHeader element marked as a Required element in the Search control group." width="431" height="455" data-path="images/flexi-capture/fls/tutorial2_6.png" />
    </Frame>
  </Step>

  <Step title="Open the Static Text tab">
    Click the **Static Text** tab.

    <Frame>
      <img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/tutorial2_7.png?fit=max&auto=format&n=r-nfa7jujx5b9gKX&q=85&s=f4f820041b0e1d91fb3f6d80117b8ccb" alt="Screenshot of the Static Text tab of the Properties of SearchElements.StaticText dialog box in ABBYY FlexiLayout Studio, showing the Search text field with the two recipe headings and Max error percentage set to 20." width="431" height="455" data-path="images/flexi-capture/fls/tutorial2_7.png" />
    </Frame>
  </Step>

  <Step title="Enter the search text">
    In the **Search text** field, type the text to find.

    The batch contains test documents with different headings: **Easiest Recipes** or **Easy to Cook Recipes**. Enter both headings.

    The headings appear on one line on all the test images. Type them without spaces to speed up the search for single-line static text, and separate the two alternative headings with `|`.
  </Step>

  <Step title="Set the maximum error percentage">
    Set the maximum number of errors that the detected text may contain, in percentage points or as a number. In this case, set the **Max error percentage** to 20, which allows 5 errors among the 25 characters of the document heading.

    Set this maximum by trial and error.
  </Step>
</Steps>
