# Slots gets filled even if form is not active

**URL:** <https://forum.rasa.com/t/slots-gets-filled-even-if-form-is-not-active/50780>\
**Category:** Rasa Open Source\
**Created:** [January 21, 2022, 1:56pm UTC](https://forum.rasa.com/t/slots-gets-filled-even-if-form-is-not-active/50780 "2022-01-21T13:56:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sajjadmanal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sajjadmanal/32/18330_2.png) [@Sajjadmanal](https://forum.rasa.com/u/Sajjadmanal)\
**Post date:** [January 21, 2022, 1:56pm UTC](https://forum.rasa.com/t/slots-gets-filled-even-if-form-is-not-active/50780/1 "2022-01-21T13:56:03Z")

</div>

Hi, I am using Rasa 2.x

I have created a form which is activated on an intent and fills two slots from entities. I have put a statement which do not predict the form intent but a different intent but the slot still gets filled. Can I do something where the slots only gets filled by the entity when a particular intent is predicted (form intent in my case) and not otherwise?

---

<div class="post-metadata">

**Author:** ![Sajjadmanal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sajjadmanal/32/18330_2.png) [@Sajjadmanal](https://forum.rasa.com/u/Sajjadmanal)\
**Post date:** [January 24, 2022, 6:43am UTC](https://forum.rasa.com/t/slots-gets-filled-even-if-form-is-not-active/50780/2 "2022-01-24T06:43:09Z")

</div>

@ChrisRahme Can you help?

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [January 24, 2022, 7:50am UTC](https://forum.rasa.com/t/slots-gets-filled-even-if-form-is-not-active/50780/3 "2022-01-24T07:50:44Z")

</div>

Set `auto_fill` to `false` for that slot

---

<div class="post-metadata">

**Author:** ![Sajjadmanal](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sajjadmanal/32/18330_2.png) [@Sajjadmanal](https://forum.rasa.com/u/Sajjadmanal)\
**Post date:** [January 24, 2022, 8:19am UTC](https://forum.rasa.com/t/slots-gets-filled-even-if-form-is-not-active/50780/4 "2022-01-24T08:19:39Z")

</div>

@ChrisRahme Thanks for answering. If I set auto\_fill to false, it will not extract the entity and fill the slot. What I actually need is, only when the form intent is predicted and form gets active, the slot should automatically get filled if the entity is there in the text. If not, it should ask from user.

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [January 25, 2022, 5:19am UTC](https://forum.rasa.com/t/slots-gets-filled-even-if-form-is-not-active/50780/5 "2022-01-25T05:19:44Z")

</div>

I see. Try using a Custom Form Validation Action’s [`extract()`](https://rasa.com/docs/rasa/forms/#custom-slot-mappings) method for that
