# Use a dropdown with typeahead in a smart action

**URL:** <https://community.forestadmin.com/t/use-a-dropdown-with-typeahead-in-a-smart-action/2886>\
**Category:** Help me!\
**Created:** [July 12, 2021, 1:30pm UTC](https://community.forestadmin.com/t/use-a-dropdown-with-typeahead-in-a-smart-action/2886 "2021-07-12T13:30:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cylwin](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cylwin/32/2659_2.png) [@cylwin](https://community.forestadmin.com/u/cylwin)\
**Post date:** [July 12, 2021, 1:30pm UTC](https://community.forestadmin.com/t/use-a-dropdown-with-typeahead-in-a-smart-action/2886/1 "2021-07-12T13:30:56Z")

</div>

Hello,  
I have a large ENUM with 100 Strings. It’s super hard and time-consuming to find the needed value.

I would like to use for this field the same widget I can use on the EDIT tab of a record =\> the dropdown with typeahead (filter as you type).  
I didn’t find any documentation on the smartaction doc to do it. Is this possible?

---

<div class="post-metadata">

**Author:** ![anon16419211](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anon16419211](https://community.forestadmin.com/u/anon16419211)\
**Post date:** [July 12, 2021, 1:40pm UTC](https://community.forestadmin.com/t/use-a-dropdown-with-typeahead-in-a-smart-action/2886/2 "2021-07-12T13:40:42Z")

</div>

Hello @cylwin and welcome on our community forum !

> [@cylwin](#):
>
> Is this possible?

Yes it is !

To do that you have to enable the layout editor → Go to your collection settings → The ENUM field you want to change → Re select the dropdown as edit widget → An _edit settings_ page should open with the possibility to turn on the option below. 🙂

Let me know if it helps.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/e/ed6abc210169c2d6f00b0a253ce9f427c0de03e5.png)

---

<div class="post-metadata">

**Author:** ![cylwin](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cylwin/32/2659_2.png) [@cylwin](https://community.forestadmin.com/u/cylwin)\
**Post date:** [July 12, 2021, 2:26pm UTC](https://community.forestadmin.com/t/use-a-dropdown-with-typeahead-in-a-smart-action/2886/3 "2021-07-12T14:26:55Z")

</div>

No, it doesn’t help.  
To create a smart action you have to code. It’s not a nocode feature of forest.  
Currently my code is :

```javascript
{
          field: "enseigne",
          description: "Store",
          type: "Enum",
          enums: ['Carrefour', 'Intermarché', ...'VERY LONG LIST'],
},

```

I would like to have something like :

```javascript
{
          field: "enseigne",
          description: "Store",
          type: "DROPDOWNWITHTYPEAHEAD !!",
          enums: ['Carrefour', 'Intermarché', ...'VERY LONG LIST'],
},

```

Do you have a workaround ?

---

<div class="post-metadata">

**Author:** ![anon16419211](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anon16419211](https://community.forestadmin.com/u/anon16419211)\
**Post date:** [July 12, 2021, 3:02pm UTC](https://community.forestadmin.com/t/use-a-dropdown-with-typeahead-in-a-smart-action/2886/4 "2021-07-12T15:02:20Z")

</div>

The type you defined in your models is the good one. What is wrong or you don’t like with the workaround I gave you above?

It allows you to type “Car” and then will display “Carrefour” in the dropdown for instance. No code is needed with the solution I provided you, everything as to be done on your admin panel. 🙂

If you didn’t find the ressource I can show you how to do it with a quick video. Let me know if needed.

---

<div class="post-metadata">

**Author:** ![cylwin](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cylwin/32/2659_2.png) [@cylwin](https://community.forestadmin.com/u/cylwin)\
**Post date:** [July 12, 2021, 3:37pm UTC](https://community.forestadmin.com/t/use-a-dropdown-with-typeahead-in-a-smart-action/2886/5 "2021-07-12T15:37:24Z")

</div>

In a smart action :

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/4/465578adfdc20bba940262d2131f801b4f09e1d2.png)

The kind of dropdown I get :

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/01b0aaec3853c3d1f7cdb12b74acf97b702e20ca.png)

**The kind of dropdown I would like to have :**

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/d/db2c1618259fb81ef3869f80f44af09459a9fb0f.png)

---

<div class="post-metadata">

**Author:** ![Sliman\_Medini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sliman_medini/32/19_2.png) [@Sliman\_Medini](https://community.forestadmin.com/u/Sliman_Medini)\
**Post date:** [July 13, 2021, 7:41am UTC](https://community.forestadmin.com/t/use-a-dropdown-with-typeahead-in-a-smart-action/2886/6 "2021-07-13T07:41:34Z")

</div>

Hi @cylwin,

In the smart action enum fields, we do not have the typeahead feature yet.  
I’ve just created a feature request for this to be implemented.

Regards

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/jonathan_lau/32/3922_2.png) [@Jonathan\_Lau](https://community.forestadmin.com/u/Jonathan_Lau)\
**Post date:** [March 9, 2022, 9:53am UTC](https://community.forestadmin.com/t/use-a-dropdown-with-typeahead-in-a-smart-action/2886/7 "2022-03-09T09:53:56Z")

</div>

did this feature get implementted? @Sliman_Medini @cylwin

---

<div class="post-metadata">

**Author:** ![Petru\_Simion](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/petru_simion/32/4192_2.png) [@Petru\_Simion](https://community.forestadmin.com/u/Petru_Simion)\
**Post date:** [March 16, 2022, 3:09pm UTC](https://community.forestadmin.com/t/use-a-dropdown-with-typeahead-in-a-smart-action/2886/8 "2022-03-16T15:09:06Z")

</div>

Any news on this @Sliman_Medini ? We’ve also been looking forward to having this, would make a huuuge difference.
