# Impossible to use dynamic search in form using Row component

**URL:** <https://community.forestadmin.com/t/impossible-to-use-dynamic-search-in-form-using-row-component/7485>\
**Category:** Help me!\
**Tags:** smart-action\
**Created:** [September 27, 2024, 4:29pm UTC](https://community.forestadmin.com/t/impossible-to-use-dynamic-search-in-form-using-row-component/7485 "2024-09-27T16:29:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvex](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@alvex](https://community.forestadmin.com/u/alvex)\
**Post date:** [September 27, 2024, 4:29pm UTC](https://community.forestadmin.com/t/impossible-to-use-dynamic-search-in-form-using-row-component/7485/1 "2024-09-27T16:29:29Z")

</div>

## Feature(s) impacted

addAction and dropdown field with dynamic search (nodejs agent)

## Observed behavior

Dropdown with “dynamic” search doesn’t work when Row layout is used in the form.

This simple Action Form display correctly in the GUI, but when I type something to search in the field `dropdownWithDynamicSearch` I got a console error (see below) and options function is never called.

If I remove the Row component, everything works good

```javascript
        collection.addAction("Test bug", {
            scope: "Global",
            execute: () => {},
            form: [
                {
                    component: "Row",
                    type: "Layout",
                    fields: [
                        {
                            label: "anyOtherField",
                            type: "String",
                        },
                    ],
                },
                {
                    id: "dropdownWithDynamicSearch",
                    label: "Test",
                    type: "String",
                    widget: "Dropdown",
                    search: "dynamic",
                    options: async (context, search) => {
                           // async query never called
                    },
                },
            ],
        });

```

## Expected behavior

The options function must me called and options must be displayed

## Failure Logs

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

## Context

- Project name: waro
- Environment name: production
- Agent technology: nodejs@1.47.0
- Database type: MySQL
- Recent changes made on your end if any: update from 1.43.0 to 1.47.0 and add row in Action Form

---

<div class="post-metadata">

**Author:** ![anon7311026](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@anon7311026](https://community.forestadmin.com/u/anon7311026)\
**Post date:** [September 30, 2024, 7:09am UTC](https://community.forestadmin.com/t/impossible-to-use-dynamic-search-in-form-using-row-component/7485/2 "2024-09-30T07:09:27Z")

</div>

Hello @alvex,

Indeed, there is an issue on this new feature. Thanks for the report, I have reproduced it.  
We are currently working on a fix to resolve it and will keep this thread updated.

@anon7311026

---

<div class="post-metadata">

**Author:** ![anon7311026](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@anon7311026](https://community.forestadmin.com/u/anon7311026)\
**Post date:** [October 7, 2024, 3:50pm UTC](https://community.forestadmin.com/t/impossible-to-use-dynamic-search-in-form-using-row-component/7485/3 "2024-10-07T15:50:09Z")

</div>

Hello,

We just released a fix to the agent.  
Please upgrade your agent to latest version, and let us know if this fixes your issue 🙏

@anon7311026

---

<div class="post-metadata">

**Author:** ![alvex](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@alvex](https://community.forestadmin.com/u/alvex)\
**Post date:** [October 7, 2024, 4:24pm UTC](https://community.forestadmin.com/t/impossible-to-use-dynamic-search-in-form-using-row-component/7485/4 "2024-10-07T16:24:46Z")

</div>

Hello,

I tested it on a dev branch and it seems to work, thank you for the quick fix 🙂

Best,  
Alexandre
