# Lookup Fields

{% embed url="<https://support.airtable.com/hc/en-us/articles/360042312194-Lookup-field-overview>" %}

A lookup field allows you to pull record contents from one linked record into another linked record. As a reminder, linked relationships can be either within the same table or across two separate tables.

### Displaying on a single line

{% tabs %}
{% tab title="Template" %}

```
{{company_names}}
```

{% endtab %}

{% tab title="Data" %}

```
{
    "company_names": [ "Documint", "SunRun" ]
}
```

{% endtab %}

{% tab title="Untitled" %}
Documint, Sunrun
{% endtab %}
{% endtabs %}

### Displaying on multiple lines

1. Add `{{this}}`as your variable and select the element where the lookup field will be displayed.

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FTeCZXsx3nD0jymyvBHHA%2Flookup%20field%20list.png?alt=media\&token=d60a9328-b0aa-416f-975b-bb69f2396654)

2\. Click "Edit Logic on the left panel and edit **"Repeat/Loop"**

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FrYX60UCje7rwrAFTrXcJ%2FRepeating%20elements.png?alt=media\&token=3091bfdf-8aa8-46e0-9f6b-5c0616c7a22d)

3\. Add the lookup field name in the **"List Variable"** box and **Save**

{% tabs %}
{% tab title="Template" %}

```
{{this}}
```

{% endtab %}

{% tab title="Data" %}

```
{
    "company_names": [ "Documint", "SunRun", "Whole Foods" ]
}
```

{% endtab %}

{% tab title="Result" %}
Documint

SunRun

Whole Foods
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
If Lookup fields are linked to Linked Records, a table ID is required. See [Expanding Linked Records](https://docs.documint.me/integrations/airtable/legacy-airtable-integration/expanding-linked-records)
{% endhint %}
