# Manually cancel forms

**URL:** <https://forum.rasa.com/t/manually-cancel-forms/29829>\
**Category:** Rasa Open Source\
**Created:** [June 5, 2020, 4:23pm UTC](https://forum.rasa.com/t/manually-cancel-forms/29829 "2020-06-05T16:23:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rogers\_ntr](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rogers_ntr/32/3067_2.png) [@Rogers\_ntr](https://forum.rasa.com/u/Rogers_ntr)\
**Post date:** [June 5, 2020, 4:23pm UTC](https://forum.rasa.com/t/manually-cancel-forms/29829/1 "2020-06-05T16:23:47Z")

</div>

Hi, I would like to manually cancel a form inside a normal action class(as oppose to a form action) in the rasa sdk. How can I achieve this please ?

PS: I know that in the form action, there is a self.deactivate().

Thanks in advance for the reply. Your sincerely.

---

<div class="post-metadata">

**Author:** ![GeovanaRamos](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/geovanaramos/32/9116_2.png) [@GeovanaRamos](https://forum.rasa.com/u/GeovanaRamos)\
**Post date:** [June 7, 2020, 5:22pm UTC](https://forum.rasa.com/t/manually-cancel-forms/29829/2 "2020-06-07T17:22:59Z")

</div>

Do you want to cancel a Rasa Form Action from a custom action or have you made your own form and want to cancel it?

If it is a Rasa Form Action, could you give some context on what are you trying to achieve and why self.deactivate() doesn’t fit your needs?

---

<div class="post-metadata">

**Author:** ![Rogers\_ntr](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rogers_ntr/32/3067_2.png) [@Rogers\_ntr](https://forum.rasa.com/u/Rogers_ntr)\
**Post date:** [June 8, 2020, 9:01am UTC](https://forum.rasa.com/t/manually-cancel-forms/29829/3 "2020-06-08T09:01:28Z")

</div>

Hi @GeovanaRamosThanks for the reply. Assume that a user start a form and while the form is still on hold requesting a particular slot, he make a normal action call. In this scenario, I want to cancel all pending form to proper save the request in the normal action. Does it make sense ?

---

<div class="post-metadata">

**Author:** ![GeovanaRamos](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/geovanaramos/32/9116_2.png) [@GeovanaRamos](https://forum.rasa.com/u/GeovanaRamos)\
**Post date:** [June 8, 2020, 11:15am UTC](https://forum.rasa.com/t/manually-cancel-forms/29829/4 "2020-06-08T11:15:20Z")

</div>

By “save the request in the normal action” you mean saving the already filled slots? If not, you can try this to cancel the current form and redirect to an action:

## story

- some\_intent
  - your\_form
  - form{“name”: “your\_form”}

- other\_intent
  - your\_form
  - form{“name”: null}
  - action\_your\_action

If you want to carry the filled slots to the normal action, I think you’ll probably have to catch the intent on the validade method if you want to stop on a specific slot or in the request\_next\_slot method as shown [here](https://rasa.com/docs/rasa/core/forms/#validating-user-input) if the rule applies to all slots, and then call self.deactivate plus a followup action. Although I am not sure if the follow up works in the validate or request\_next\_slot methods, you could try.
