# Smart action with a dropdown list

**URL:** <https://community.forestadmin.com/t/smart-action-with-a-dropdown-list/2081>\
**Category:** Help me!\
**Tags:** howtos\
**Created:** [March 11, 2021, 12:06pm UTC](https://community.forestadmin.com/t/smart-action-with-a-dropdown-list/2081 "2021-03-11T12:06:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![caid](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@caid](https://community.forestadmin.com/u/caid)\
**Post date:** [March 11, 2021, 12:06pm UTC](https://community.forestadmin.com/t/smart-action-with-a-dropdown-list/2081/1 "2021-03-11T12:06:27Z")

</div>

Hey guys,

I’ve been looking in all the topics to find what I need but unfortunately I couldn’t find what I need.  
So I just need to add a dropdown list with enums inside a smart action and need to retrieve what enum is chosen by from the dropdown from the smart action in my route.  
This is my code (inspired by this topic : [Is it possible to show list of all possible values in dropdown when using Smart Action's form field with "reference"](https://community.forestadmin.com/t/is-it-possible-to-show-list-of-all-possible-values-in-dropdown-when-using-smart-actions-form-field-with-reference/550)) :

```javascript
actions: [{
    name: 'Test',
    type: 'single',
    fields: [{
      field: 'Choice',
      type: 'ENUM',
      enums: ['Validate', 'Refuse', 'Edit'],
      isRequired: true,
      widget: 'dropdown'
    }]
  }]

```

Thanks a lot!!!

- forest-express-sequelize: ^7.0.0
- Express Version: ~4.17.1
- Sequelize Version: ~5.15.1
- Database Dialect: postgresSQL
- Project Name: nostrumcare

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [March 11, 2021, 1:34pm UTC](https://community.forestadmin.com/t/smart-action-with-a-dropdown-list/2081/2 "2021-03-11T13:34:45Z")

</div>

Hey @caid,

I’m sorry but I’m not sure to understand you. You are juste ttrying to use an enum that’s all ?  
This should work. If not please share a video 🙏

---

<div class="post-metadata">

**Author:** ![caid](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@caid](https://community.forestadmin.com/u/caid)\
**Post date:** [March 11, 2021, 2:15pm UTC](https://community.forestadmin.com/t/smart-action-with-a-dropdown-list/2081/3 "2021-03-11T14:15:54Z")

</div>

Hey @anon62739609

I’m trying to create a dropdown list in my smart action, I tried with the enum but it didn’t work 😕  
Do I have to compress the video in .tar to upload?

Thanks!

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [March 11, 2021, 2:31pm UTC](https://community.forestadmin.com/t/smart-action-with-a-dropdown-list/2081/4 "2021-03-11T14:31:32Z")

</div>

Use [loom.com](http://loom.com) for example. It’s quite easy to use and you’ll just have a link to share 😉. No need for tar

---

<div class="post-metadata">

**Author:** ![caid](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@caid](https://community.forestadmin.com/u/caid)\
**Post date:** [March 11, 2021, 3:11pm UTC](https://community.forestadmin.com/t/smart-action-with-a-dropdown-list/2081/5 "2021-03-11T15:11:47Z")

</div>

@anon62739609 nice!!!

Here’s the video [Loom | Free Screen & Video Recording Software](https://www.loom.com/share/7d3eb3b6167b40be8b9be345352442dd) 🙂

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [March 11, 2021, 3:58pm UTC](https://community.forestadmin.com/t/smart-action-with-a-dropdown-list/2081/6 "2021-03-11T15:58:30Z")

</div>

Oh I did not realised, remove the widget it’s useless and the type need to be `Enum` not `ENUM`. Tell me if that works

---

<div class="post-metadata">

**Author:** ![caid](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@caid](https://community.forestadmin.com/u/caid)\
**Post date:** [March 12, 2021, 9:20am UTC](https://community.forestadmin.com/t/smart-action-with-a-dropdown-list/2081/7 "2021-03-12T09:20:44Z")

</div>

Hey @anon62739609

Niceee that’s working !!!

Thanks a lot !!!

---

<div class="post-metadata">

**Author:** ![caid](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@caid](https://community.forestadmin.com/u/caid)\
**Post date:** [March 12, 2021, 10:51am UTC](https://community.forestadmin.com/t/smart-action-with-a-dropdown-list/2081/8 "2021-03-12T10:51:53Z")

</div>

@anon62739609 is there a way to use a custom “placeholder” for the dropdown, the default one is “select” but I want to replace it 😕

Best,

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [April 19, 2021, 1:03pm UTC](https://community.forestadmin.com/t/smart-action-with-a-dropdown-list/2081/9 "2021-04-19T13:03:22Z")

</div>

Not actually i’ll push your feedback to our productboard
