> ## 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 12: Describing the Delivery Address field with a DeliveryAddress element

> Capture the multi-line Delivery Address field with a DeliveryAddress Paragraph element, applying relations to nearby keywords and the white gap.

To create the DeliveryAddress element:

1. In the `InvoiceHeader.grAddress` element, create an element of type [Paragraph](/flexi-capture/fls/template/text-chain) and name it **DeliveryAddress**.

2. Click the Relations tab.

3. Since the **DeliveryAddress** field can only occur above the name **kwInvoiceNumber**, only to the left of the **wgAddressRight** white gap, and only to the right of the beginning of the name **kwDeliveryAddress** (with small offset), set the following search constraints:

   * Above the element **kwInvoiceNumber**, Offset = 0.
   * Left of the element **kwInvoiceNumber**, Offset = 0.
   * Right of the element **kwDeliveryAddress**, Offset = -50, Reference boundary = Left

   <Note>
     Offset values are selected by trial and error.
   </Note>

4. Since the [Group](/flexi-capture/fls/template/elements-compound) element `InvoiceHeader.grAddress` already specifies that the **DeliveryAddress** field can only be located below the keywords of the name **kwDeliveryAddress**, you do not need to duplicate this constraint here.

5. Click the Advanced tab.

6. Since the **Delivery Address** field is optional on the images but whenever it occurs it has a name, set the following [additional search constraint](/flexi-capture/fls/template/advanced-constraints) in the Advanced pre-search relations field: Look for the object only if the **kwDeliveryAddress** element has been detected. In the [FlexiLayout language](/flexi-capture/fls/code/general-code):\
   `If InvoiceHeader.kwDeliveryAddress.IsNull Then DontFind;`

7. Try matching the FlexiLayout with the test images and make sure that the program successfully detects the element on all the images where applicable.

8. To describe the location of the **DeliveryAddress** block, select the Source element option, and then click <img src="https://mintcdn.com/abbyy/fmgRWFNHKYN2MLSg/images/flexi-capture/fls/Browse_Button.gif?s=3673db30dda4a3293aec716853588b55" alt="Browse button" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="21" height="20" data-path="images/flexi-capture/fls/Browse_Button.gif" /> and select the **DeliveryAddress** element as the source element.
