# Display property for Set field

**URL:** <https://discourse.getcockpit.com/t/display-property-for-set-field/2074>\
**Category:** Support\
**Created:** [September 15, 2021, 2:33pm UTC](https://discourse.getcockpit.com/t/display-property-for-set-field/2074 "2021-09-15T14:33:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanawa02](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/hanawa02/32/841_2.png) [@Hanawa02](https://discourse.getcockpit.com/u/Hanawa02)\
**Post date:** [September 15, 2021, 2:33pm UTC](https://discourse.getcockpit.com/t/display-property-for-set-field/2074/1 "2021-09-15T14:33:50Z")

</div>

Hi there, I am creating a small tutorial for cockpit, so that the interns can work more easily with it.

While describing the Set field type, I stumbled in a problem (or maybe just lack of knowledge from my side).

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/1X/14310bbad2d2ea51b6418c8fee3ed419063b9b50.png)  
I tried to create this field using the UI, where the value of the personal\_id field would be displayed to represent this set.

The field was created and I added this entry:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/1X/f04f1ccce3de5a64275b12d3dc46fdb9954df4b4.png)

But when I look at the list, it display the name of the field (or uses the value provided as a literal string), instead of the value of the field.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/1X/34628e4f5910b6d6cfbe521af0df74be826f08d0.png)

Is my configuration wrong somehow?

---

<div class="post-metadata">

**Author:** ![abernh](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/abernh/32/859_2.png) [@abernh](https://discourse.getcockpit.com/u/abernh)\
**Post date:** [September 15, 2021, 7:51pm UTC](https://discourse.getcockpit.com/t/display-property-for-set-field/2074/2 "2021-09-15T19:51:05Z")

</div>

You’re very close. Just wrap your field names into `{}` and it should display the correct value

```auto
{
  "display": "{field1}",
  "fields": [
    {
      "name": "field1",
      "type": "text"
    },
    {
      "name": "field2",
      "type": "text"
    }
  ]
}

```

via [Renderer for set field in backend - #8 by artur](https://discourse.getcockpit.com/t/renderer-for-set-field-in-backend/372/8)

---

<div class="post-metadata">

**Author:** ![Hanawa02](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/hanawa02/32/841_2.png) [@Hanawa02](https://discourse.getcockpit.com/u/Hanawa02)\
**Post date:** [September 16, 2021, 7:43am UTC](https://discourse.getcockpit.com/t/display-property-for-set-field/2074/3 "2021-09-16T07:43:54Z")

</div>

Thanks a lot, that did the trick, the interesting for me is that in a repeater you don’t need to use the curly braces.

---

<div class="post-metadata">

**Author:** ![sock4proxy](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/sock4proxy/32/1146_2.png) [@sock4proxy](https://discourse.getcockpit.com/u/sock4proxy)\
**Post date:** [August 14, 2022, 10:21pm UTC](https://discourse.getcockpit.com/t/display-property-for-set-field/2074/4 "2022-08-14T22:21:27Z")

</div>

When i try the config for the multiple set field from your answer i get {field1}, not field1 value  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/0/057b4ceef359529bd0a5ab915378c2c8d82447d9.png)

I’m using version 2.2.1, maybe something has changed in the syntax since your answer? Or am I doing something wrong?  
Thank you in advance.

---

<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 15, 2022, 9:06am UTC](https://discourse.getcockpit.com/t/display-property-for-set-field/2074/5 "2022-08-15T09:06:30Z")

</div>

Please try `${data.field1}` as a display field setting

---

<div class="post-metadata">

**Author:** ![sock4proxy](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/sock4proxy/32/1146_2.png) [@sock4proxy](https://discourse.getcockpit.com/u/sock4proxy)\
**Post date:** [August 15, 2022, 11:21am UTC](https://discourse.getcockpit.com/t/display-property-for-set-field/2074/6 "2022-08-15T11:21:54Z")

</div>

Thanks a lot, it works. And why in this case it is necessary to write in this way? Is there any documentation about template syntax?
