# Array smart fields referencing dynamic collections are no longer sent

**URL:** https://community.forestadmin.com/t/array-smart-fields-referencing-dynamic-collections-are-no-longer-sent/5486
**Category:** Help me!
**Created:** [November 2, 2022, 3:48pm UTC](https://community.forestadmin.com/t/array-smart-fields-referencing-dynamic-collections-are-no-longer-sent/5486 "2022-11-02T15:48:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dramloc](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/dramloc/32/5307_2.png) [@dramloc](https://community.forestadmin.com/u/dramloc)
#### Post date: [November 2, 2022, 3:48pm UTC](https://community.forestadmin.com/t/array-smart-fields-referencing-dynamic-collections-are-no-longer-sent/5486/1 "2022-11-02T15:48:29Z")

</div>

Hi there 👋, we detected some regression on smart fields arrays referencing dynamic collections. This regression seem pretty recent as this was working last Friday (2022/10/28). Please find some more info in the following sections.

## Feature(s) impacted

Smart fields with string array type referencing dynamic collections

## Observed behavior

It seems like smart fields of type `['String']` are no longer sent in the creation or update payload `attributes` when using checkboxes or a dropdown referencing a dynamic collection (this feature was working on Friday, Oct. 28, 2022).

Minimal reproduction steps:

- Setup minimal collection with a smart field of type [‘String’]:

```javascript
// forest/minimal.js
const { collection } = require('forest-express-sequelize');
collection('minimal', {
  fields: [
    {
      field: 'smartField',
      type: ['String'],
      get: (record) => console.log('smartField.get', record),
      set: (record, fieldValue) => console.log('smartField.set', record, fieldValue),
    },
  ],
});

```

```javascript
// models/minimal.js
module.exports = (sequelize, DataTypes) => {
  const { Sequelize } = sequelize;
  const Minimal = sequelize.define(
    'minimal',
    {
      id: {
        type: DataTypes.UUID,
        primaryKey: true,
        defaultValue: Sequelize.literal('uuid_generate_v4()'),
      },
    },
    {
      tableName: 'minimal',
      schema: config.db.schema,
      createdAt: false,
      updatedAt: false,
    },
  );

  return Minimal;
};

```

- Setup the field to reference a dynamic collection using the Checkboxes or Dropdown components:  

- The smart field is no longer present in the create or update payloads (see video on WeTransfer: [Unique Download Link | WeTransfer](https://we.tl/t-HRlQYhDyba))

This change might be related to the recent patch following this issue: [Smart action field hook not triggering for array type](https://community.forestadmin.com/t/smart-action-field-hook-not-triggering-for-array-type/5370)

## Expected behavior

The expected behavior is to received the selected fields in the `attributes` property of the payload like [described in the documentation](https://docs.forestadmin.com/documentation/reference-guide/smart-fields/smart-field-examples/add-fields-destined-to-the-create-form) and as it was previously the case.

## Context

- Project name: folk
- Team name: Folk
- Environment name: All environments
- Agent type & version: forest-express-sequelize@8.5.0

---

<div class="post-metadata">

### Author: ![Arnaud\_Moncel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud_moncel/32/24_2.png) [@Arnaud\_Moncel](https://community.forestadmin.com/u/Arnaud_Moncel)
#### Post date: [November 2, 2022, 3:51pm UTC](https://community.forestadmin.com/t/array-smart-fields-referencing-dynamic-collections-are-no-longer-sent/5486/2 "2022-11-02T15:51:33Z")

</div>

Hi @dramloc 👋 welcome to our community.  
Unfortunately we are aware of this issue. We already reverted the contribution who cause the issue, can you try again and let me know if that work ? 🙏

---

<div class="post-metadata">

### Author: ![dramloc](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/dramloc/32/5307_2.png) [@dramloc](https://community.forestadmin.com/u/dramloc)
#### Post date: [November 2, 2022, 3:57pm UTC](https://community.forestadmin.com/t/array-smart-fields-referencing-dynamic-collections-are-no-longer-sent/5486/3 "2022-11-02T15:57:03Z")

</div>

This fixed the issue!  
Thank you very much for your quick response 🙏
