# Is there a way to dynamically enable nodes in a flow

**URL:** https://discourse.nodered.org/t/is-there-a-way-to-dynamically-enable-nodes-in-a-flow/32770
**Category:** General
**Created:** [12 September 2020 04:06 UTC](https://discourse.nodered.org/t/is-there-a-way-to-dynamically-enable-nodes-in-a-flow/32770 "2020-09-12T04:06:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shanajira](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shanajira/32/26105_2.png) [@shanajira](https://discourse.nodered.org/u/shanajira)
#### Post date: [12 September 2020 04:06 UTC](https://discourse.nodered.org/t/is-there-a-way-to-dynamically-enable-nodes-in-a-flow/32770/1 "2020-09-12T04:06:48Z")

</div>

Is there a way to enable or disable certain nodes in a flow, based on msg.payload? or some other string?

My intended flow is like this:

Node1 (dropdown from node red UI dashboard's node)  
Based on what is selected in that drop down, I want to show the subsequent nodes - either form element or button or something.

That way, the UI on node-red dashboard looks neat and relevant.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [12 September 2020 06:45 UTC](https://discourse.nodered.org/t/is-there-a-way-to-dynamically-enable-nodes-in-a-flow/32770/2 "2020-09-12T06:45:40Z")

</div>

You can show and hide groups of nodes on the dashboard by using the ui\_control node to send an appropriate msg.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [11 November 2020 06:45 UTC](https://discourse.nodered.org/t/is-there-a-way-to-dynamically-enable-nodes-in-a-flow/32770/3 "2020-11-11T06:45:40Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
