# Display field in nested Set of field

**URL:** <https://discourse.getcockpit.com/t/display-field-in-nested-set-of-field/2855>\
**Category:** Cockpit v2\
**Created:** [August 23, 2023, 5:07am UTC](https://discourse.getcockpit.com/t/display-field-in-nested-set-of-field/2855 "2023-08-23T05:07:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![m00gendai](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/m00gendai/32/1269_2.png) [@m00gendai](https://discourse.getcockpit.com/u/m00gendai)\
**Post date:** [August 23, 2023, 5:07am UTC](https://discourse.getcockpit.com/t/display-field-in-nested-set-of-field/2855/1 "2023-08-23T05:07:40Z")

</div>

I have a model which contains a Set of Fields which itself contains another Set of Fields.

I would like to display the content of a field in the nested Set of Field when I view a model.

Example Model:

```auto
{
  "title": "My Model",
  "content": [
    {
      "paragraphs": [
        {
          "title": "Title 1",
          "text": [
            "Some text 1"
           ],
        },
      ]
    },
    {
      "paragraphs": [
        {
          "title": "Title 2",
          "text": [
            "Some text 2"
           ],
        },
      ]
    }
  ]
}

```

How can I display Title 1, Title 2 and so on in the model view? I’ve tried several variations of ${data.someField} but at most I get [object Object], undefined or n/a.

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [August 24, 2023, 10:10pm UTC](https://discourse.getcockpit.com/t/display-field-in-nested-set-of-field/2855/2 "2023-08-24T22:10:50Z")

</div>

```auto
${data.content.map(c => c.paragraphs.map(p => p.title)).join(', ')}

```
