# Dynamic Forms in rasa

**URL:** <https://forum.rasa.com/t/dynamic-forms-in-rasa/43654>\
**Category:** Rasa Open Source\
**Created:** [May 17, 2021, 10:42am UTC](https://forum.rasa.com/t/dynamic-forms-in-rasa/43654 "2021-05-17T10:42:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hakrac](https://avatars.discourse-cdn.com/v4/letter/h/839c29/32.png) [@hakrac](https://forum.rasa.com/u/hakrac)\
**Post date:** [May 17, 2021, 10:42am UTC](https://forum.rasa.com/t/dynamic-forms-in-rasa/43654/1 "2021-05-17T10:42:42Z")

</div>

I want to create a form which dynamically determines the required slots which are defined in the domain. I don’t want to change the extraction mechanism.

I did try to accomplish this via a custom FormValidationAction, inside of the `required_slots` function (without defining `extract_myslot`) but I am getting the following error message:

```
No method 'extract_myslot' found for slot 'myslot'. Skipping extraction for this slot.

```

although I set the form to

```
form_questionnaire:
    myslot:
      - type: from_entity
        entity: text

```

as I want myslot to be filled by the entity.

---

<div class="post-metadata">

**Author:** ![j.mosig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/j.mosig/32/3588_2.png) [@j.mosig](https://forum.rasa.com/u/j.mosig)\
**Post date:** [May 18, 2021, 7:16am UTC](https://forum.rasa.com/t/dynamic-forms-in-rasa/43654/2 "2021-05-18T07:16:18Z")

</div>

Hello @hakrac , welcome to the Forum!

I don’t quite understand what you are doing with the `extract_myslot`. Can you please post your `requested_slots` implementation and domain file? Also, It’d be good to know the output of `rasa --version`.

---

<div class="post-metadata">

**Author:** ![j.mosig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/j.mosig/32/3588_2.png) [@j.mosig](https://forum.rasa.com/u/j.mosig)\
**Post date:** [May 18, 2021, 7:16am UTC](https://forum.rasa.com/t/dynamic-forms-in-rasa/43654/3 "2021-05-18T07:16:56Z")

</div>

Did you define all the slots in the domain? `myslot` must be listed under `slots`.

---

<div class="post-metadata">

**Author:** ![hakrac](https://avatars.discourse-cdn.com/v4/letter/h/839c29/32.png) [@hakrac](https://forum.rasa.com/u/hakrac)\
**Post date:** [May 21, 2021, 9:43pm UTC](https://forum.rasa.com/t/dynamic-forms-in-rasa/43654/4 "2021-05-21T21:43:17Z")

</div>

@j.mosig I got it working by looking up the source of rasa.

```
form_questionnaire:
    required_slots: []
    myslot:
      - type: from_entity
        entity: text

```

As of version 2.6.0 I have to explicitly add the `required_slots` key in order to dynamicly set the required\_slots from within a custom validation action.
