# All array entries displayed on new lines (and not in a single line)

**URL:** <https://community.forestadmin.com/t/all-array-entries-displayed-on-new-lines-and-not-in-a-single-line/4216>\
**Category:** Help me!\
**Created:** [February 15, 2022, 7:35am UTC](https://community.forestadmin.com/t/all-array-entries-displayed-on-new-lines-and-not-in-a-single-line/4216 "2022-02-15T07:35:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bef](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@bef](https://community.forestadmin.com/u/bef)\
**Post date:** [February 15, 2022, 7:35am UTC](https://community.forestadmin.com/t/all-array-entries-displayed-on-new-lines-and-not-in-a-single-line/4216/1 "2022-02-15T07:35:24Z")

</div>

Hi,

I created a smart collection which contains a data field.  
This data is field is a string-array, but in details tab it is just shown as string (see screenshot).  
I want to show each entry in a new line. How is that possible?

```javascript
collection('myCollection', {
  actions: [],
  fields: [
    {
      field: 'date',
      type: 'Date',
      isReadOnly: true,
    },
    {
      field: 'type',
      type: 'String',
      isReadOnly: true,
    },
    {
      field: 'appellation',
      type: 'String',
      isReadOnly: true,
    },
    {
      field: 'text',
      type: 'String',
      isReadOnly: true,
    },
    {
      field: 'data',
      type: ['String'],
      isReadOnly: true,
    },
  ],
  segments: [],
});

```

 ![Screenshot 2022-02-15 at 08.31.37](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/7/7d83426024476996f4f980fc839d6253ce2254a9.png)

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [February 15, 2022, 9:51am UTC](https://community.forestadmin.com/t/all-array-entries-displayed-on-new-lines-and-not-in-a-single-line/4216/2 "2022-02-15T09:51:01Z")

</div>

Hello @bef,

Thanks for reaching out 🙌

Could you please detail what you wish exactly when saying

> I want to show each entry in a new line.

?

Do you know that you can change the display widget of this field (by editing the layout → access this field settings → display widget)?

Thanks.

---

<div class="post-metadata">

**Author:** ![bef](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@bef](https://community.forestadmin.com/u/bef)\
**Post date:** [February 15, 2022, 10:26am UTC](https://community.forestadmin.com/t/all-array-entries-displayed-on-new-lines-and-not-in-a-single-line/4216/3 "2022-02-15T10:26:12Z")

</div>

Thanks for your reply.  
I will try to clarify what I mean with “new line”.

The data is an array of strings. I want each element of this array displayed in a new line, like this:

```javascript
Data
entry-0
entry-1
entry-2

```

I know that I can change the display widget, but I did not find one, which changes how the array is displayed. It is always shown in a single line. If the array has a lot of entries it is hard to read.

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [February 15, 2022, 2:25pm UTC](https://community.forestadmin.com/t/all-array-entries-displayed-on-new-lines-and-not-in-a-single-line/4216/4 "2022-02-15T14:25:20Z")

</div>

Hey @bef,

Ok, understood.

Unfortunately, this is not possible for now.

I will create a Product request though, so that it could be possible in the future.

Thanks for your feedback!  
Cheers.
