# What is the name of the fields in the "fields" loop

**URL:** <https://forum.manager.io/t/what-is-the-name-of-the-fields-in-the-fields-loop/19049>\
**Category:** Uncategorized\
**Created:** [November 10, 2018, 5:09pm UTC](https://forum.manager.io/t/what-is-the-name-of-the-fields-in-the-fields-loop/19049 "2018-11-10T17:09:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaazaam](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/chaazaam/32/16466_2.png) [@chaazaam](https://forum.manager.io/u/chaazaam)\
**Post date:** [November 10, 2018, 5:09pm UTC](https://forum.manager.io/t/what-is-the-name-of-the-fields-in-the-fields-loop/19049/1 "2018-11-10T17:09:07Z")

</div>

Hello to all the team. On invoices and quotes, a loop displays a number of fields (Invoice date, due date, référence du devis etc.). But the exact “name” of these fields does not appear. So I do not have total control to display these fields. What are they called? Is it possible to display them individually without going through this loop?

---

<div class="post-metadata">

**Author:** ![Cognicom](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/cognicom/32/16978_2.png) [@Cognicom](https://forum.manager.io/u/Cognicom)\
**Post date:** [November 10, 2018, 5:22pm UTC](https://forum.manager.io/t/what-is-the-name-of-the-fields-in-the-fields-loop/19049/2 "2018-11-10T17:22:39Z")

</div>

Do you mean this?

```
{% for field in fields %}
    <div style="text-transform: capitalize;">{{ field.label }}</div>
    <div style="font-weight: bold; margin-bottom: 10px">{{ field.text }}</div>
{% endfor %}

```

_(Yours may be a little different as this quote came from my customised invoice)_

The field names are in `field.label` and the values are in `field.text`. The actual field count will depend on your settings (which features you have enabled and which you have disabled) and whether or not specific fields actually have values (for example, if there is no quote reference for an invoice, that field won’t get passed to the template and therefore won’t get displayed/printed). The actual field names (labels) will also vary based on your language settings.

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [November 10, 2018, 5:36pm UTC](https://forum.manager.io/t/what-is-the-name-of-the-fields-in-the-fields-loop/19049/3 "2018-11-10T17:36:22Z")

</div>

Expanding a little, both `field.label` and `field.text` **are** the names of the variables. But they are arrays, and as @Cognicom wrote, their content varies according to your setup and previous entries. It also varies by transaction type, because all transaction forms can display with the same theme and, therefore, use the same variables.

So the only way to display or suppress one element of the array is to apply conditional logic while looping through it.

---

<div class="post-metadata">

**Author:** ![itmoto](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/itmoto/32/12177_2.png) [@itmoto](https://forum.manager.io/u/itmoto)\
**Post date:** [November 10, 2018, 8:17pm UTC](https://forum.manager.io/t/what-is-the-name-of-the-fields-in-the-fields-loop/19049/4 "2018-11-10T20:17:05Z")

</div>

@chaazaam  
This post maybe helpful.

> [@Liquid templates & field names](https://forum.manager.io/t/liquid-templates-field-names/10903):
>
> Greetings community! I’m glad I discovered this software. I’m just getting into customising the themes and I’m quite happy with the way it’s going! But there’s a lot of trial and error moving the fields around to suit my business. For example, I’m moving the date to a different position. So I do: {% for field in fields %}{% if field.label == "Date" %} {{ field.label}}: {{ field.text}} {% endif %}{% endfor %} which works if I preview the theme via customise, but won’t work if viewing a Sales…

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [January 18, 2023, 3:08pm UTC](https://forum.manager.io/t/what-is-the-name-of-the-fields-in-the-fields-loop/19049/5 "2023-01-18T15:08:06Z")

</div>


