# DB2 - ui-from node - removes all input message properties

**URL:** https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032
**Category:** Dashboard
**Tags:** dashboard-2
**Created:** [16 March 2025 13:44 UTC](https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032 "2025-03-16T13:44:42Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![SandeepA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sandeepa/32/63225_2.png) [@SandeepA](https://discourse.nodered.org/u/SandeepA)
#### Post date: [16 March 2025 13:44 UTC](https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032/1 "2025-03-16T13:44:42Z")

</div>

Hi,

Below is a simplified version of the issue.

I have Form 1, Form 2,  
I collect data from Form 1.  
Once done based on certain conditions - collection additional data from Form 2.  
The i store the data collected from Form 1 and Form 2.

Challenge : Once the user has fed in data in Form 2 - and submits - the output is just output from Form 2 - the data comes in msg.payload.

The original data on msg (non msg.payload attributes) are being removed.  
This is inconsistent to other DB nodes where the input msg gets stored and passes. (example button).

The problem this causes it to collate such data , i need to store relevant info from Form 1 into flow/global context and then retrieve it post Form 2. I do use client info to collate connected messages.

But with a high number of users using the system - storing messages in context may not viable.  
Plus not sure if this should be the mechanism

Please assist if there is fix for this. Or i am checking it incorrectly.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [16 March 2025 15:21 UTC](https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032/2 "2025-03-16T15:21:55Z")

</div>

I think you could store the data from the first form in msg.topic and in the second form tell it to use msg.topic as the topic passed on.

---

<div class="post-metadata">

### Author: ![SandeepA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sandeepa/32/63225_2.png) [@SandeepA](https://discourse.nodered.org/u/SandeepA)
#### Post date: [16 March 2025 15:54 UTC](https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032/3 "2025-03-16T15:54:29Z")

</div>

Thanks @Colin . Tried it . Doesnt work.  
(Is a wonderful WA had it worked)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [16 March 2025 16:47 UTC](https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032/4 "2025-03-16T16:47:46Z")

</div>

> [@SandeepA](#):
>
> Doesnt work.

Well, I think that must be a bug. Can you post a very simple example showing that not working?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [16 March 2025 16:55 UTC](https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032/5 "2025-03-16T16:55:50Z")

</div>

No, you are right, it doesn't work even in the simplest case  
With this flow, clicking the inject, then submitting the form, should pass the topic on, but it doesn't.

```auto
[{"id":"d40df48e42428101","type":"ui-form","z":"997da33a0beedade","name":"form topic test","group":"4f87bd59a15b847e","label":"Form topic test","order":0,"width":0,"height":0,"options":[{"label":"test","key":"test","type":"text","required":true,"rows":null}],"formValue":{"test":""},"payload":"","submit":"submit","cancel":"clear","resetOnSubmit":true,"topic":"topic","topicType":"msg","splitLayout":"","className":"","passthru":false,"dropdownOptions":[],"x":500,"y":7140,"wires":[["c106012b88e2453b"]]},{"id":"b5ce2e5e721a7915","type":"inject","z":"997da33a0beedade","name":"Click this then submit the form","props":[{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"a test topic","x":240,"y":7140,"wires":[["d40df48e42428101"]]},{"id":"c106012b88e2453b","type":"debug","z":"997da33a0beedade","name":"debug 31","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":710,"y":7140,"wires":[]},{"id":"4f87bd59a15b847e","type":"ui-group","name":"test","page":"c6ff182a4185f2f2","width":"6","height":"1","order":1,"showTitle":false,"className":"","visible":"true","disabled":"false"},{"id":"c6ff182a4185f2f2","type":"ui-page","name":"Test page","ui":"ID-BASE-1","path":"/testpage","icon":"home","layout":"grid","theme":"f9b6670b127dc219","order":9,"className":"","visible":"true","disabled":"false"},{"id":"ID-BASE-1","type":"ui-base","name":"Dashboard","path":"/dashboard","includeClientData":true,"acceptsClientConfig":["ui-control","ui-notification","ui-gauge-classic"],"titleBarStyle":"default"},{"id":"f9b6670b127dc219","type":"ui-theme","name":"FlowForge Theme","colors":{"surface":"#152a47","primary":"#005aff","bgPage":"#ffffff","groupBg":"#ffffff","groupOutline":"#cc3e3e"},"sizes":{"pagePadding":"12px","groupGap":"12px","groupBorderRadius":"4px","widgetGap":"12px"}}]

```

I suggest you submit an issue against the dashboard.

---

<div class="post-metadata">

### Author: ![SandeepA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sandeepa/32/63225_2.png) [@SandeepA](https://discourse.nodered.org/u/SandeepA)
#### Post date: [16 March 2025 17:11 UTC](https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032/6 "2025-03-16T17:11:44Z")

</div>

Done. Thanks @Colin for taking time to check this.  
New issue opened on [ui form doesnt pass the input msg attributes send to the node · Issue #1631 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/issues/1631)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [16 March 2025 22:04 UTC](https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032/7 "2025-03-16T22:04:39Z")

</div>

I have added a specific bug report for the msg.topic passthrough not working when configured to do so as this appears to be a clear bug, whereas the passthrough of other properties could be an issue open for discussion.

> <https://github.com/FlowFuse/node-red-dashboard/issues/1632>
>
> \### Current Behavior
> 
> The help text for the form node states that if the \`topic\`… field is set to \`msg.topic\` then any topic fed to the node should be passed on when the form is submitted. This does not appear work, the topic is always an empty string.
> 
> This is possibly related to #1631 which points out that additional message properties passed in are not passed on, which they should generally be.
> 
> \### Expected Behavior
> 
> \_No response\_
> 
> \### Steps To Reproduce
> 
> This flow exhibits the problem. Click the inject node, then Submit the form. msg.topic is sent as an empty string instead of the passed in topic.
> 
> \`\`\`
> \[{"id":"d40df48e42428101","type":"ui-form","z":"997da33a0beedade","name":"form topic test","group":"4f87bd59a15b847e","label":"Form topic test","order":0,"width":0,"height":0,"options":\[{"label":"test","key":"test","type":"text","required":true,"rows":null}\],"formValue":{"test":""},"payload":"","submit":"submit","cancel":"clear","resetOnSubmit":true,"topic":"topic","topicType":"msg","splitLayout":"","className":"","passthru":false,"dropdownOptions":\[\],"x":500,"y":7140,"wires":\[\["c106012b88e2453b"\]\]},{"id":"b5ce2e5e721a7915","type":"inject","z":"997da33a0beedade","name":"Click this then submit the form","props":\[{"p":"topic","vt":"str"}\],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"a test topic","x":240,"y":7140,"wires":\[\["d40df48e42428101"\]\]},{"id":"c106012b88e2453b","type":"debug","z":"997da33a0beedade","name":"debug 31","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":710,"y":7140,"wires":\[\]},{"id":"4f87bd59a15b847e","type":"ui-group","name":"test","page":"c6ff182a4185f2f2","width":"6","height":"1","order":1,"showTitle":false,"className":"","visible":"true","disabled":"false"},{"id":"c6ff182a4185f2f2","type":"ui-page","name":"Test page","ui":"ID-BASE-1","path":"/testpage","icon":"home","layout":"grid","theme":"f9b6670b127dc219","order":9,"className":"","visible":"true","disabled":"false"},{"id":"ID-BASE-1","type":"ui-base","name":"Dashboard","path":"/dashboard","includeClientData":true,"acceptsClientConfig":\["ui-control","ui-notification","ui-gauge-classic"\],"titleBarStyle":"default"},{"id":"f9b6670b127dc219","type":"ui-theme","name":"FlowForge Theme","colors":{"surface":"#152a47","primary":"#005aff","bgPage":"#ffffff","groupBg":"#ffffff","groupOutline":"#cc3e3e"},"sizes":{"pagePadding":"12px","groupGap":"12px","groupBorderRadius":"4px","widgetGap":"12px"}}\]
> \`\`\`
> 
> \### Environment
> 
> \- Dashboard version: 1.22.1
> \- Node-RED version: 4.0.8
> \- Node.js version: 22.x
> \- npm version:
> \- Platform/OS: Ubuntu
> \- Browser: Edge
> 
> 
> \### Have you provided an initial effort estimate for this issue?
> 
> I can not provide an initial effort estimate

---

<div class="post-metadata">

### Author: ![SandeepA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sandeepa/32/63225_2.png) [@SandeepA](https://discourse.nodered.org/u/SandeepA)
#### Post date: [16 March 2025 22:07 UTC](https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032/8 "2025-03-16T22:07:02Z")

</div>

Understood. Thanks @Colin

---

<div class="post-metadata">

### Author: ![JeromeVISUALS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jeromevisuals/32/40103_2.png) [@JeromeVISUALS](https://discourse.nodered.org/u/JeromeVISUALS)
#### Post date: [7 April 2025 20:15 UTC](https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032/9 "2025-04-07T20:15:28Z")

</div>

Hi, I have the same problem with msg properties not being passed over Form, I added a comment on GitHub.  
In my case I trigger to form from a button located in a subflow, and I use topic to pass over one of the subflow ENV vars.... I wonder if anyone found a workaround ?

Thanks

EDIT : found one, use a context.set/get to store topic

---

<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: [7 May 2025 20:16 UTC](https://discourse.nodered.org/t/db2-ui-from-node-removes-all-input-message-properties/96032/10 "2025-05-07T20:16:08Z")

</div>

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