# Form action validate() vs. validate\_slotxyz()

**URL:** <https://forum.rasa.com/t/form-action-validate-vs-validate-slotxyz/20253>\
**Category:** Rasa Open Source\
**Created:** [October 23, 2019, 8:42pm UTC](https://forum.rasa.com/t/form-action-validate-vs-validate-slotxyz/20253 "2019-10-23T20:42:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [October 24, 2019, 7:29am UTC](https://forum.rasa.com/t/form-action-validate-vs-validate-slotxyz/20253/2 "2019-10-24T07:29:55Z")

</div>

The `validate` function does the following:

```auto
Extract and validate value of requested slot.

If nothing was extracted reject execution of the form action.
Subclass this method to add custom validation and rejection logic.

```

So, the `validate` function does not only validate the value that is set, but it also checks if the user may want to reject the form and break out from it. If the requested slot was filled, the `validate` function is calling the `validate_slotxyz` functions.

So, if you just want to update the validation of the set value, I would recommend to overwrite the `validate_slotxyz` function. If you want to add more/change the rejection logic, you should overwrite the `validate` function.

---

_[View the full topic](https://forum.rasa.com/t/form-action-validate-vs-validate-slotxyz/20253)._
