# RASA Deactivate form

**URL:** <https://forum.rasa.com/t/rasa-deactivate-form/14105>\
**Category:** Getting Started with Rasa\
**Created:** [August 8, 2019, 2:16pm UTC](https://forum.rasa.com/t/rasa-deactivate-form/14105 "2019-08-08T14:16:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nilendughosal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nilendughosal/32/4742_2.png) [@nilendughosal](https://forum.rasa.com/u/nilendughosal)\
**Post date:** [August 8, 2019, 2:16pm UTC](https://forum.rasa.com/t/rasa-deactivate-form/14105/1 "2019-08-08T14:16:42Z")

</div>

Hi ,

I am filling my slot values using **self.from\_text()** but i want that if user enters **cancel** the form should get deactivated

I tried using self.deactivate() inside validation function but didn’t work

Is there something i am doing wrong?

---

<div class="post-metadata">

**Author:** ![nilendughosal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nilendughosal/32/4742_2.png) [@nilendughosal](https://forum.rasa.com/u/nilendughosal)\
**Post date:** [August 11, 2019, 3:52am UTC](https://forum.rasa.com/t/rasa-deactivate-form/14105/2 "2019-08-11T03:52:05Z")

</div>

Ok…

I guess I got a work around for my situation As soon as user enters cancel, I am setting all the slots value to cancel so that the dialogue flow will shift from FormPolicy to normal Dialogue Management of RASA

Please let me know if i can do something better than that

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [August 16, 2019, 10:14am UTC](https://forum.rasa.com/t/rasa-deactivate-form/14105/3 "2019-08-16T10:14:36Z")

</div>

@nilendughosal have you taken a look at the example here yet: [Forms](https://rasa.com/docs/rasa/core/forms/#handling-unhappy-paths) ?

---

<div class="post-metadata">

**Author:** ![nilendughosal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nilendughosal/32/4742_2.png) [@nilendughosal](https://forum.rasa.com/u/nilendughosal)\
**Post date:** [August 27, 2019, 6:10am UTC](https://forum.rasa.com/t/rasa-deactivate-form/14105/4 "2019-08-27T06:10:57Z")

</div>

@akelad yup i looked into RASA forms example, they give options to deactivate slot fillling. But i guess that worked for me.

Thanks 🙂
