# Reset slot after the forms complete

**URL:** <https://forum.rasa.com/t/reset-slot-after-the-forms-complete/35355>\
**Category:** Tutorials, Resources & Videos\
**Tags:** rasa\
**Created:** [October 1, 2020, 6:27am UTC](https://forum.rasa.com/t/reset-slot-after-the-forms-complete/35355 "2020-10-01T06:27:40Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![krkc](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@krkc](https://forum.rasa.com/u/krkc)\
**Post date:** [August 10, 2021, 8:40am UTC](https://forum.rasa.com/t/reset-slot-after-the-forms-complete/35355/7 "2021-08-10T08:40:29Z")

</div>

Hello @Dinesh-gowdam-2610

The same case with me.

But i have been fixed it by creating an extra python class for resetting the all slots immediate after successful submission of the form. And it works fine 🙂

class ActionResetAllSlots(Action):

```auto
def name(self):
    return "action_reset_all_slots"

def run(self, dispatcher, tracker, domain):
    return [AllSlotsReset()]

```

And i have been added it at the end of my form rule as below…

```auto
rules:
  - rule: activate document search form
    steps:
      - intent: lookingfordocuments # intent that triggers form activation
      - action: document_form # run the form
      - active_loop: document_form # this form is active

  - rule: submit form
    condition:
    - active_loop: document_form # this form must be active
    steps:
      - action: document_form # run the form
      - active_loop: null # the form is no longer active because it has been filled
      - slot_was_set:
        - requested_slot: null # All the required slots have been filled
      - action: action_submit
      - action: action_reset_all_slots

```

Also, registered the action in my domain.yml. Thanks

Best Regards, Ravi

---

_[View the full topic](https://forum.rasa.com/t/reset-slot-after-the-forms-complete/35355)._
