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

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.

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.

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

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

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.

[{"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.

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

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.

Understood. Thanks @Colin