# Action Panel fields continuously loose focus when using Dynamic Form

**URL:** <https://community.forestadmin.com/t/action-panel-fields-continuously-loose-focus-when-using-dynamic-form/7200>\
**Category:** Help me!\
**Tags:** smart-action\
**Created:** [May 3, 2024, 2:32pm UTC](https://community.forestadmin.com/t/action-panel-fields-continuously-loose-focus-when-using-dynamic-form/7200 "2024-05-03T14:32:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romain\_Gilliotte](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/romain_gilliotte/32/6585_2.png) [@Romain\_Gilliotte](https://community.forestadmin.com/u/Romain_Gilliotte)\
**Post date:** [May 3, 2024, 2:32pm UTC](https://community.forestadmin.com/t/action-panel-fields-continuously-loose-focus-when-using-dynamic-form/7200/1 "2024-05-03T14:32:08Z")

</div>

## Feature(s) impacted

Smart action forms

## Observed behavior

When I type in `field1`, the forms reloads as soon as I type something, it does not waits for me to defocus the field, and the cursor is no longer in `field1.

This makes it very difficult to use the form (I need to re-select the field every 2-3 chars entered, unless I type very fast!)

```javascript
export default {
  scope: 'Single',
  form: [
    {
      label: 'field1',
      type: 'Number',
      isReadOnly: true,
    },
    {
      label: 'field2',
      type: 'Number',
      value: (context) => context.formValues['field1'],
      isReadOnly: true,
    },

```

## Expected behavior

Hooks should only happens when i leave the field

## Failure Logs

## Context

- Project name: roundtable
- Team name: …
- Environment name: …
- Agent technology: (nodejs, php, rails, python)
- Agent (forest package) name & version: …
- Database type: …
- 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:** [May 6, 2024, 11:00am UTC](https://community.forestadmin.com/t/action-panel-fields-continuously-loose-focus-when-using-dynamic-form/7200/3 "2024-05-06T11:00:36Z")

</div>

Hello @Romain_Gilliotte !

Thanks for the feedback, I created a bug ticket for this issue. We should release a fix in the following days.

Have a nice day !
