Display field in nested Set of field

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:

{
  "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.

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