# Node dialog overriding input message

**URL:** <https://discourse.nodered.org/t/node-dialog-overriding-input-message/27350>\
**Category:** Developing Nodes\
**Created:** [27 May 2020 06:47 UTC](https://discourse.nodered.org/t/node-dialog-overriding-input-message/27350 "2020-05-27T06:47:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hklages](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hklages/32/23899_2.png) [@hklages](https://discourse.nodered.org/u/hklages)\
**Post date:** [27 May 2020 06:47 UTC](https://discourse.nodered.org/t/node-dialog-overriding-input-message/27350/1 "2020-05-27T06:47:54Z")

</div>

In my node the user can select a command in the node dialog (`<select>` tag) and in the incoming message with property msg.cmd.

Is there any "recommended" practice how to prioritize that conflicting input?  
option a) incoming message always overrides data provided in the dialog  
option b) opposite of a  
option c) in dialog there is a tic box or the select box has option "incoming message"  
option d) ??

Should there be an error message/stop the flow in case of a conflict?

---

<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:** [27 May 2020 07:06 UTC](https://discourse.nodered.org/t/node-dialog-overriding-input-message/27350/2 "2020-05-27T07:06:28Z")

</div>

Normally, if an option is set, it takes precedence over incoming msg.

but, instead of a select, you might want to consider the typedInput for allowing user to specify a msg property.

The typedInput can allow msg. flw.global. and your own custom dropdown list - 2 birds, 1 stone.

---

<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:** [27 May 2020 08:04 UTC](https://discourse.nodered.org/t/node-dialog-overriding-input-message/27350/3 "2020-05-27T08:04:11Z")

</div>

or one of the select options can be - allow override with incoming msg.cmd.  
But yes in general if set in the config that takes precedence as the user usually sets it for a reason.

---

<div class="post-metadata">

**Author:** ![hklages](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hklages/32/23899_2.png) [@hklages](https://discourse.nodered.org/u/hklages)\
**Post date:** [28 May 2020 05:40 UTC](https://discourse.nodered.org/t/node-dialog-overriding-input-message/27350/4 "2020-05-28T05:40:28Z")

</div>

Thanks for clarification!

---

<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:** [27 July 2020 05:40 UTC](https://discourse.nodered.org/t/node-dialog-overriding-input-message/27350/5 "2020-07-27T05:40:29Z")

</div>

Closed on 27 July 2020 05:40 UTC

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