# Enabling / disabling writing data to a file using a dashboard switch node

**URL:** <https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438>\
**Category:** General\
**Tags:** node-red-dashboard, function-node\
**Created:** [19 December 2021 15:41 UTC](https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438 "2021-12-19T15:41:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [19 December 2021 15:46 UTC](https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438/2 "2021-12-19T15:46:24Z")

</div>

Didnt your other thread solve this?

> [@Disable flow / injection using a button on the dashboard](https://discourse.nodered.org/t/disable-flow-injection-using-a-button-on-the-dashboard/55006):
>
> Hi all, I am totally new here and I am not really familiar with software development and things like this... I have created an example with a gauge on a dashboard feed with a random number activated using a inject node firing every second. Is it possible to stop the inject node firing using a button on the dashboard? I did see some answers about similar topics in this forum but I did not understand them because they have been not detailed enough for me. Thx. Code: [{"id":"9aace…

---

_[View the full topic](https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438)._
