# Dynamic Smart action suddenly stopped working

**URL:** <https://community.forestadmin.com/t/dynamic-smart-action-suddenly-stopped-working/7640>\
**Category:** Help me!\
**Created:** [November 20, 2024, 12:10pm UTC](https://community.forestadmin.com/t/dynamic-smart-action-suddenly-stopped-working/7640 "2024-11-20T12:10:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zero](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/zero/32/479_2.png) [@Zero](https://community.forestadmin.com/u/Zero)\
**Post date:** [November 20, 2024, 12:10pm UTC](https://community.forestadmin.com/t/dynamic-smart-action-suddenly-stopped-working/7640/1 "2024-11-20T12:10:27Z")

</div>

## Feature(s) impacted

We have a smart action for our users that allows them to upload a document. Sometimes, we also need to let them fill out additional information related to the document. To achieve this, we created an action that pulls the different document types. Each type has a corresponding database field we called `extras`, which is a JSON object where we define the fields we need.

When a document is selected, we fetch the `extras` and dynamically generate the additional fields required. This functionality was working perfectly until a few weeks ago when it suddenly stopped working. From our side, we didn’t make any changes or updates to this part of the system, so we suspect the issue might be due to a Forest Admin frontend update.

To help diagnose the issue, I’ve attached our `extras` JSON configuration and a screenshot of the current state of the smart action. Currently, all we see are six status fields, which is unexpected.

```javascript
{
    "fields": [
        {
            "type": "Dateonly",
            "label": "Closing Date",
            "isReadOnly": true,
            "isRequired": true,
            "description": "Document specific field"
        },
        {
            "type": "String",
            "label": "Current Financial Institution",
            "isReadOnly": true,
            "isRequired": true,
            "description": "Document specific field"
        },
        {
            "type": "String",
            "label": "New Financial Institution",
            "isReadOnly": true,
            "isRequired": false,
            "description": "Document specific field"
        },
        {
            "type": "Number",
            "label": "Mortgage Charge Amount",
            "isReadOnly": true,
            "isRequired": true,
            "description": "Document specific field"
        }
    ]
}

```

 ![Screenshot 2024-11-20 at 7.02.28 AM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/2/266aeb56a5afdd10b91750aa1da1b6308352a45e.png)

## Observed behavior

## Expected behavior

We are expecting for the smart action to open up and let us pick a document type from there it will then show the fields we need to fill out

## Failure Logs

Logs are not returning back any errors

## Context

- Project name: Ourboro
- Team name: Ourboro
- Environment name: ourboro-development
- Agent technology: (nodejs)
- Agent (forest package) name & version: “@forestadmin/agent”: “^1.49.0”,
- Database type: postgres
- Recent changes made on your end if any: …

---

<div class="post-metadata">

**Author:** ![Enki](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/enki/32/6004_2.png) [@Enki](https://community.forestadmin.com/u/Enki)\
**Post date:** [November 20, 2024, 2:33pm UTC](https://community.forestadmin.com/t/dynamic-smart-action-suddenly-stopped-working/7640/3 "2024-11-20T14:33:45Z")

</div>

Hello @Zero ,  
I see that your project uses multiple agent version depending on the environment.  
Can you confirm that you have the issue with the old agent (forest-express-sequelize), but not with the new agent ?

I cannot reproduce the issue, can you show me the action implementation code ?  
Is there any error on your browser console when you encounter the issue ?

kind regards,

Enki
