# Change node: dynamically set a property

**URL:** <https://discourse.nodered.org/t/change-node-dynamically-set-a-property/11374>\
**Category:** General\
**Created:** [21 May 2019 15:17 UTC](https://discourse.nodered.org/t/change-node-dynamically-set-a-property/11374 "2019-05-21T15:17:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![moebius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/moebius/32/2872_2.png) [@moebius](https://discourse.nodered.org/u/moebius)\
**Post date:** [21 May 2019 15:23 UTC](https://discourse.nodered.org/t/change-node-dynamically-set-a-property/11374/2 "2019-05-21T15:23:41Z")

</div>

This is possible with a jsonata expression ($eval) - here you can see an example:

> [@Allow target to be also a jsonata expression](https://discourse.nodered.org/t/allow-target-to-be-also-a-jsonata-expression/10510/5):
>
> In the source field i can enter something like this: $eval(payload[0].payload.cfg.p1,payload[1]) which returns a field in payload[1], defined by the string in .p1 (like "payload.data.val")

---

_[View the full topic](https://discourse.nodered.org/t/change-node-dynamically-set-a-property/11374)._
