# Use dynamic enums in smart action field

**URL:** <https://community.forestadmin.com/t/use-dynamic-enums-in-smart-action-field/1401>\
**Category:** Feature suggestions\
**Created:** [December 1, 2020, 9:45am UTC](https://community.forestadmin.com/t/use-dynamic-enums-in-smart-action-field/1401 "2020-12-01T09:45:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillaumejauffret](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumejauffret/32/61_2.png) [@guillaumejauffret](https://community.forestadmin.com/u/guillaumejauffret)\
**Post date:** [December 1, 2020, 9:45am UTC](https://community.forestadmin.com/t/use-dynamic-enums-in-smart-action-field/1401/1 "2020-12-01T09:45:08Z")

</div>

is it possible to display a dynamic list of enums as string in a smart action field?

## Expected behavior

I have users that can have many accounts.  
I create a single smart action for user records.  
In the smart action field, I would like to display the list of the accounts’ names depending on the user record.

To do so, I would need to set a dynamic enums property in the definition of the smart action.

```javascript
const mySmartAction = {
  name: 'MAJ',
  type: 'single',
  fields: [
    {
      field: 'Structure',
      description: "my description",
      type: 'Enum',
      enums: <SHOULD BE DYNAMIC>
      reference: ???, // should we use reference?
      isRequired: true
    }
  ]
}

```

Is the feature released?

---

<div class="post-metadata">

**Author:** ![anon20071947](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@anon20071947](https://community.forestadmin.com/u/anon20071947)\
**Post date:** [December 4, 2020, 5:34pm UTC](https://community.forestadmin.com/t/use-dynamic-enums-in-smart-action-field/1401/2 "2020-12-04T17:34:21Z")

</div>

Hi @guillaumejauffret 👋🏼

Thanks for your suggestion, this is a request we have been getting a lot lately. I cannot provide with an ETA but we are currently working on it 😉

I’ll log it in our ProductBoard, we’ll notify you on this thread as soon as it’s shipped 📦
