# Slot\_mapping

**URL:** https://forum.rasa.com/t/slot-mapping/4024
**Category:** Rasa Open Source
**Created:** [January 4, 2019, 2:48am UTC](https://forum.rasa.com/t/slot-mapping/4024 "2019-01-04T02:48:08Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![lalitsomnathe](https://avatars.discourse-cdn.com/v4/letter/l/a698b9/32.png) [@lalitsomnathe](https://forum.rasa.com/u/lalitsomnathe)
#### Post date: [June 14, 2019, 3:03pm UTC](https://forum.rasa.com/t/slot-mapping/4024/3 "2019-06-14T15:03:29Z")

</div>

Hi, suppose in slot mapping I mentioned

> “customer\_id”: self.from\_entity(entity=“customer\_id”,not\_intent=[‘stop’])

In validation of this slot I mentioned that

> ```
> if not self.is_int(value):
> dispatcher.utter_template("utter_invalid_customer_id", tracker)
> return {"customer_id": None}
> else:
> return {"customer_id": value}
> 
> ```

In story

> ```
> - form{"name": "bank_form"}
> 
> ```
> 
> - form: stop
> - utter\_ask\_continue
> 
> - form: deny
> - action\_deactivate\_form
> - form{“name”: null}

So, 1. Once the form is called it will ask user to fill this slot → this is handled. 2. But when user gives input to this slot as “stop” intent, the form still validates “None” …

How Can I avoid this validation? (when stop intent is uttered)

---

_[View the full topic](https://forum.rasa.com/t/slot-mapping/4024)._
