# Is it possible to change a node property by sending node a message?

**URL:** https://discourse.nodered.org/t/is-it-possible-to-change-a-node-property-by-sending-node-a-message/4287
**Category:** Dashboard
**Created:** [25 October 2018 13:17 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-a-node-property-by-sending-node-a-message/4287 "2018-10-25T13:17:43Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![garynl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/garynl/32/95490_2.png) [@garynl](https://discourse.nodered.org/u/garynl)
#### Post date: [25 October 2018 13:17 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-a-node-property-by-sending-node-a-message/4287/1 "2018-10-25T13:17:43Z")

</div>

Is it possible to change a node property by sending the node a message?  
I'd like to be able to set the min, max range of a gauge to values entered by a user.  
thanks  
gary

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [25 October 2018 13:26 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-a-node-property-by-sending-node-a-message/4287/2 "2018-10-25T13:26:16Z")

</div>

If you are talking about the ui\_guage node then NO, it isn't currently possible to dynamically change the min/max values (as far as I can see)

---

<div class="post-metadata">

### Author: ![garynl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/garynl/32/95490_2.png) [@garynl](https://discourse.nodered.org/u/garynl)
#### Post date: [25 October 2018 13:30 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-a-node-property-by-sending-node-a-message/4287/3 "2018-10-25T13:30:35Z")

</div>

Ok, thanks for the quick reply!

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [25 October 2018 13:36 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-a-node-property-by-sending-node-a-message/4287/4 "2018-10-25T13:36:32Z")

</div>

In general, no. But it depends on the individual node as to what they allow to be set on a per-message basis.

In the case of the `ui_gauge` node, you _can_ set the min/max values by passing in `msg.ui_control` set to `{min: 10 , max: 20}`.

Here's a full reference of the dashboard node fields you can set using `msg.ui_control`: [https://github.com/node-red/node-red-dashboard/blob/master/config-fields.md](https://github.com/node-red/node-red-dashboard/blob/master/config-fields.md)

---

<div class="post-metadata">

### Author: ![garynl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/garynl/32/95490_2.png) [@garynl](https://discourse.nodered.org/u/garynl)
#### Post date: [25 October 2018 13:40 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-a-node-property-by-sending-node-a-message/4287/5 "2018-10-25T13:40:41Z")

</div>

Thank you!  
I had been trying something along those lines, but was using the name I had assigned to the gauge  
gary

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [25 October 2018 13:54 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-a-node-property-by-sending-node-a-message/4287/6 "2018-10-25T13:54:27Z")

</div>

Ok, you learn something new everyday

---

<div class="post-metadata">

### Author: ![jchen5057](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jchen5057/32/17759_2.png) [@jchen5057](https://discourse.nodered.org/u/jchen5057)
#### Post date: [3 March 2020 23:30 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-a-node-property-by-sending-node-a-message/4287/7 "2020-03-03T23:30:07Z")

</div>

How to dynamically change server IP address?

say if I have a modbus, there is a "Server dropdown" box to select the server, can I pass "msg.Server" to select it?

In the Server configuration, can I pass msg.Host and msg.Port to specify these values?

Thanks.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [3 March 2020 23:31 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-a-node-property-by-sending-node-a-message/4287/8 "2020-03-03T23:31:58Z")

</div>

@jchen5057 This thread is over a year old and will be closed. You should start a new thread with your issue.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [3 March 2020 23:32 UTC](https://discourse.nodered.org/t/is-it-possible-to-change-a-node-property-by-sending-node-a-message/4287/9 "2020-03-03T23:32:06Z")

</div>


