# Rasa custom forms not working

**URL:** <https://forum.rasa.com/t/rasa-custom-forms-not-working/44409>\
**Category:** Rasa Open Source\
**Created:** [June 8, 2021, 2:33pm UTC](https://forum.rasa.com/t/rasa-custom-forms-not-working/44409 "2021-06-08T14:33:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luk](https://avatars.discourse-cdn.com/v4/letter/l/e480ec/32.png) [@Luk](https://forum.rasa.com/u/Luk)\
**Post date:** [June 8, 2021, 2:33pm UTC](https://forum.rasa.com/t/rasa-custom-forms-not-working/44409/1 "2021-06-08T14:33:59Z")

</div>

Hello,

I am trying to create a custom FormAction. The goal is to ask the user several questions and for each questions the goal is to save the whole user answer in a slot. All the inputs should then be send to a document creation service using api.

The problem is that my FormAction is not working. This is how I tried it:

class It\_Innovation\_Form(FormAction):

```
def name(self):
    return "it_innovation_form"

@staticmethod
def required_slots(tracker):

    return ["idea_name", "short_description", "solved_problem", "added_value", "advantage_to_existing_solutions", 
            "ask_technologies", "ask_awareness_technologies", "difficulty_it_innovation", "situation_withoutinnovation"]
   

def slot_mappings(self) -> Dict[Text, Union[Dict, List[Dict]]]:
    '''A dictionary to map required slots to
        - an extracted entity
        - intent: value pairs
        - a whole message
        or a list of them, where a first match will be picked'''

    return {
        "idea_name": [
            self.tracker.latest_message.text,
        ],
        "short_description": [
            self.tracker.latest_message.text,
        ],
        "solved_problem": [
            self.tracker.latest_message.text,
        ],
        "added_value": [
            self.tracker.latest_message.text,
        ],
        "advantage_to_existing_solutions": [
            self.tracker.latest_message.text,
        ],
        "ask_technologies": [
            self.tracker.latest_message.text,
        ],
        "ask_awareness_technologies": [
            self.tracker.latest_message.text,
        ],
        "difficulty_it_innovation": [
            self.tracker.latest_message.text,
        ],
        "situation_withoutinnovation": [
            self.tracker.latest_message.text,
        ],
    }

def submit(
    self,
    dispatcher: CollectingDispatcher,
    tracker: Tracker,
    domain: Dict[Text, Any],
) -> List[Dict]:

    dispatcher.utter_message("Thanks for your inputs, you have now described your innovation idea!")
    return []

```

> Blockquote

I get the following error message: AttributeError: ‘It\_Innovation\_Form’ object has no attribute ‘tracker’

If any of you have tips on how to solve my problem that would be great.

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [June 9, 2021, 9:07am UTC](https://forum.rasa.com/t/rasa-custom-forms-not-working/44409/2 "2021-06-09T09:07:13Z")

</div>

Which Rasa Open Source version are you using? Things changed a lot with Rasa Open Source 2.0 which - in your case - make any Python code unnecessary: [Forms](https://rasa.com/docs/rasa/forms)

---

<div class="post-metadata">

**Author:** ![Luk](https://avatars.discourse-cdn.com/v4/letter/l/e480ec/32.png) [@Luk](https://forum.rasa.com/u/Luk)\
**Post date:** [June 9, 2021, 1:07pm UTC](https://forum.rasa.com/t/rasa-custom-forms-not-working/44409/3 "2021-06-09T13:07:54Z")

</div>

First thanks for your answer and your help. I am using rasa open source 2.0. Maybe I misunderstood it, but I want to save the whole text the user types in into my slots.

To achieve this I need to make a Custom Slot Mapping and I need to do this with python code. Is this right?

---

<div class="post-metadata">

**Author:** ![Luk](https://avatars.discourse-cdn.com/v4/letter/l/e480ec/32.png) [@Luk](https://forum.rasa.com/u/Luk)\
**Post date:** [June 10, 2021, 5:18am UTC](https://forum.rasa.com/t/rasa-custom-forms-not-working/44409/4 "2021-06-10T05:18:01Z")

</div>

I tried it by using only Forms without any python code:

slots:  
idea\_name:  
type: text  
added\_value:  
type: text

forms:  
it\_innovation\_form:  
required\_slots:  
idea\_name:  
- type: from\_text  
added\_value:  
- type: from\_text

responses:  
utter\_ask\_it\_innovation\_form\_idea\_name:

- text: Give the idea a name

utter\_ask\_short\_description:

- text: Please describe your whole idea briefly in 2-3 sentences  

actions:

- it\_innovation\_form

But I get the error message: ERROR rasa\_sdk.endpoint - No registered action found for name ‘it\_innovation\_form’.

rasa.shared.exceptions.RasaException: Failed to execute custom action.

I don`t know why it is not finding the action “it\_innovation\_form” as I mentioned it under actions.
