# Add rule to change node using a payload

**URL:** <https://discourse.nodered.org/t/add-rule-to-change-node-using-a-payload/75686>\
**Category:** General\
**Tags:** node-red-dashboard, function-node\
**Created:** [24 February 2023 12:41 UTC](https://discourse.nodered.org/t/add-rule-to-change-node-using-a-payload/75686 "2023-02-24T12:41:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgottie](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tgottie](https://discourse.nodered.org/u/tgottie)\
**Post date:** [24 February 2023 12:41 UTC](https://discourse.nodered.org/t/add-rule-to-change-node-using-a-payload/75686/1 "2023-02-24T12:41:14Z")

</div>

So what in wanting to do is add rules into a change node by using dashboard forms, is there anyways to do this?

Some way to send a payload that will add a rule into the change node?

---

<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:** [24 February 2023 22:55 UTC](https://discourse.nodered.org/t/add-rule-to-change-node-using-a-payload/75686/2 "2023-02-24T22:55:31Z")

</div>

Not easily no. You would need to re-write the flow file and then redeploy the flow without the user noticing - which would be hard as it would most likely refresh the dashboard as well... so no. You could create a function node that did have your own set of rules that you could then control via messages from the dashboard.

---

<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:** [25 April 2023 22:56 UTC](https://discourse.nodered.org/t/add-rule-to-change-node-using-a-payload/75686/3 "2023-04-25T22:56:06Z")

</div>

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