> ## 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: Creating 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 will typically want 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 particular case, the document heading will make a good identifier element, since it contains distinct text that can be easily read by the OCR engine.

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

The document heading will be used solely to identify the document as belonging to the given type and will not be recognized in ABBYY FlexiCapture. In the FlexiLayout, describe the document heading as an element of type **Static Text**:

1. Click the **FlexiLayout** tab in the program main window.

2. Select **SearchElements** in the FlexiLayout tree.

3. Select the Static Text command in **FlexiLayout → Add Elements → Static Text** or in the shortcut menu of the element.

4. In the Name field, type a name for the element, for example, **FormHeader**.

5. 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>

6. 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>

7. In the Search text field, type the text to find.\
   The batch contains test documents that have different headings: **Easiest Recipes** or **Easy to Cook Recipes**. Enter both headings.\
   The headings are written in one line on all the test images. Therefore, you can type the headings without spaces to speed up the search for single-line static text. Separate the two alternative headings by "|".

8. Set the maximum number of errors that the detected text may contain (either in percentage points or as a number). In this particular case, set the Max error percentage to 20, which allows 5 errors among the 25 characters of the document heading.

<Note>
  The maximum number of errors is selected by trial and error.
</Note>
