# Multiple actions - prevent other actions from firing?

**URL:** https://discuss.hotwired.dev/t/multiple-actions-prevent-other-actions-from-firing/1150
**Category:** General
**Created:** [May 6, 2020, 8:33pm UTC](https://discuss.hotwired.dev/t/multiple-actions-prevent-other-actions-from-firing/1150 "2020-05-06T20:33:40Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![adrienpoly](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/adrienpoly/32/78_2.png) [@adrienpoly](https://discuss.hotwired.dev/u/adrienpoly)
#### Post date: [May 7, 2020, 6:25pm UTC](https://discuss.hotwired.dev/t/multiple-actions-prevent-other-actions-from-firing/1150/4 "2020-05-07T18:25:42Z")

</div>

> [@Matt\_Roberts](#):
>
> That returning false or similar would prevent the second action from firing.

I think what you are looking for is `event.stopImmediatePropagation()`

this will prevent all subsequent actions

> [@Possible to stop calls with multiple actions?](https://discuss.hotwired.dev/t/possible-to-stop-calls-with-multiple-actions/628):
>
> If you’re using multiple actions in an element, is it possible to stop/abort the chain in some way? \<input type="text" data-action="focus-\>formatter#verify keydown-\>form#submit"\> So if verify() failed I’d want to stop submit() from being called at all. Note these are in two different controllers. My particular scenario is that I’ve got a generic controller that is on all “Cancel” buttons in forms throughout my site. But for some forms I have a controller specific to handling fields on that fo…

---

_[View the full topic](https://discuss.hotwired.dev/t/multiple-actions-prevent-other-actions-from-firing/1150)._
