# Disable flow / injection using a button on the dashboard

**URL:** <https://discourse.nodered.org/t/disable-flow-injection-using-a-button-on-the-dashboard/55006>\
**Category:** General\
**Tags:** node-red-dashboard, function-node\
**Created:** [10 December 2021 11:55 UTC](https://discourse.nodered.org/t/disable-flow-injection-using-a-button-on-the-dashboard/55006 "2021-12-10T11:55:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 December 2021 12:53 UTC](https://discourse.nodered.org/t/disable-flow-injection-using-a-button-on-the-dashboard/55006/3 "2021-12-10T12:53:06Z")

</div>

You can simply block the flow of messages from the inject.

Here is an example (with code) : [Cancel inputs for a period of time - #6 by Steve-Mcl](https://discourse.nodered.org/t/cancel-inputs-for-a-period-of-time/43749/6)

Simply fire those block/unblock messages from dashboard buttons.

---

_[View the full topic](https://discourse.nodered.org/t/disable-flow-injection-using-a-button-on-the-dashboard/55006)._
