# Rasa Loops/Forms: Why do i have to reset the form/loop after handling an intent

**URL:** <https://forum.rasa.com/t/rasa-loops-forms-why-do-i-have-to-reset-the-form-loop-after-handling-an-intent/35364>\
**Category:** Rasa Open Source\
**Created:** [October 1, 2020, 10:24am UTC](https://forum.rasa.com/t/rasa-loops-forms-why-do-i-have-to-reset-the-form-loop-after-handling-an-intent/35364 "2020-10-01T10:24:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@John](https://forum.rasa.com/u/John)\
**Post date:** [October 1, 2020, 10:24am UTC](https://forum.rasa.com/t/rasa-loops-forms-why-do-i-have-to-reset-the-form-loop-after-handling-an-intent/35364/1 "2020-10-01T10:24:54Z")

</div>

Hi,

I have a problem understanding the following example from [here](https://rasa.com/docs/rasa/forms#writing-stories--rules-for-unhappy-form-paths):

```
rules:
- rule: Example of an unhappy path
  condition:
  # Condition that form is active.
  - active_loop: restaurant_form
  steps:
  # This unhappy path handles the case of an intent `chitchat`.
  - intent: chitchat
  - action: utter_chitchat
  # Return to form after handling the `chitchat` intent
  - action: restaurant_form
  - active_loop: restaurant_form

```

I dont understand the last two actions, namely

```
  # Return to form after handling the `chitchat` intent
  - action: restaurant_form
  - active_loop: restaurant_form

```

Why do i have to set the active loop again? From the condition i am able to know that the loop is already active.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![John](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@John](https://forum.rasa.com/u/John)\
**Post date:** [October 6, 2020, 6:33am UTC](https://forum.rasa.com/t/rasa-loops-forms-why-do-i-have-to-reset-the-form-loop-after-handling-an-intent/35364/2 "2020-10-06T06:33:27Z")

</div>

I tested it: Even if I dont include the last two lines into a story the form seems to be exceuted successfuly. Is this an obsolete entry?

---

<div class="post-metadata">

**Author:** ![Ghostvv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ghostvv/32/211_2.png) [@Ghostvv](https://forum.rasa.com/u/Ghostvv)\
**Post date:** [October 27, 2020, 8:59am UTC](https://forum.rasa.com/t/rasa-loops-forms-why-do-i-have-to-reset-the-form-loop-after-handling-an-intent/35364/3 "2020-10-27T08:59:28Z")

</div>

yes the last `active_loop: restaurant_form` is not necessary, since it is already set above, however `- action: restaurant_form` is necessary to tell the bot that form should be called again. Are you sure it is working without it?
