# Smart Actions Enum type get a null value inserted in dropdown

**URL:** <https://community.forestadmin.com/t/smart-actions-enum-type-get-a-null-value-inserted-in-dropdown/5825>\
**Category:** Help me!\
**Created:** [January 11, 2023, 10:37pm UTC](https://community.forestadmin.com/t/smart-actions-enum-type-get-a-null-value-inserted-in-dropdown/5825 "2023-01-11T22:37:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Bro](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/thomas_bro/32/5601_2.png) [@Thomas\_Bro](https://community.forestadmin.com/u/Thomas_Bro)\
**Post date:** [January 11, 2023, 10:37pm UTC](https://community.forestadmin.com/t/smart-actions-enum-type-get-a-null-value-inserted-in-dropdown/5825/1 "2023-01-11T22:37:41Z")

</div>

## Feature(s) impacted

Dropdown in smart action form

## Observed behavior

A null value was inserted in the array of values

## Expected behavior

get the palceholder “select” and just items who filled enums array

## Context

- Project name: Hublo
- Environment name: all
- Agent type & version: “forest-express-sequelize”: “^8.5.9”

##Screenshot:

 ![Capture d’écran 2023-01-11 à 23.31.54](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/e/ea7d7663d8b076b15530a628815985c6a9913c92.png)

##forest/entity.ts

```javascript
actions: [
    {
      name: "Test dropdown",
      type: "single",
      fields: [
        {
          field: "Test 1",
          type: "Enum",
          isRequired: true,
          enums: ["first item", "second item"],
        }
      ],
    }
]

```

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [January 13, 2023, 9:06am UTC](https://community.forestadmin.com/t/smart-actions-enum-type-get-a-null-value-inserted-in-dropdown/5825/2 "2023-01-13T09:06:13Z")

</div>

Hello @Thomas_Bro and welcome to our community !

I agree that the component can be more coherent with the rest of our widgets.  
I see nothing against adding the “Select” placeholder. For the null value it allows users to deselect an item from the dropdown, but it certainly can be improved: making the field required would remove the capability to unselect an element.

If these changes correspond to what you were looking for I can create a task for it to be made.

Best regards,

Dogan

---

<div class="post-metadata">

**Author:** ![Thomas\_Bro](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/thomas_bro/32/5601_2.png) [@Thomas\_Bro](https://community.forestadmin.com/u/Thomas_Bro)\
**Post date:** [January 13, 2023, 10:36am UTC](https://community.forestadmin.com/t/smart-actions-enum-type-get-a-null-value-inserted-in-dropdown/5825/3 "2023-01-13T10:36:45Z")

</div>

Thanks for your reply!  
I was just expected the same behaviour in your documentation. But I think it’s okay for me. Thank you @anon7284711

> **[Dropdown with list of values in smart action form](https://docs.forestadmin.com/documentation/reference-guide/actions/smart-action-examples/dropdown-with-list-of-values-in-smart-action-form)**

 ![Capture d’écran 2023-01-13 à 11.33.58](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/9/9b7e2c74189965a6070d5223fe28212e09815635.png)
