I am currently trying to summarise all inputs from previous (form) nodes at the end.
Describe the problem/error/question
However, in an aggregate node, for example, I only ever get the information from the previous node. If I then add if-then, it becomes all the more difficult.
If I connect all nodes to the last node (e.g. code), I get individual results according to the number of nodes passed through. However, this is not a particularly good solution, especially with larger workflows it can quickly get messy.
You may want to accumulate all items employing a Merge node with multiple inputs.
In your case you may want to direct Form3 and Form4 to the same one input as the only one of the two Form nodes will actually provide data at any given execution run.
Multiple inputs are only available in Append mode, so may need to further transform data (e.g. Aggregate).
Here is an example with pinned data:
NB. Connecting multiple outputs to a Code node may not work as you expect it to. It will pass inbound items one by one as they arrive, while Merge node will wait for all inputs before passing them down.
If the above resolves your question, please mark this post as a Solution.
thank you for your answer. Your code-node “combine inputs” is super useful, I like that.
I currently have 9 inputs in the merge node in my current workflow and everything looks overlapped. Two more inputs and I would have to add more merge-nodes to capture the data at all. Is there no other way to make everything look a bit tidier? Something like a global object with the data of the nodes passed through?
If nothing better comes along, I’ll mark your answer as a solution, after all, it works.
I’m still working on the workflow. Using of external tools like google sheets e.g. is restricted by company policies.
I now concat all needed information in a row on top with multiple combine nodes with your combine inputs node at the end. Not the best but for me a pracitcal solution.
I see. I can hear you. It is virtually impossible to employ convenient 3p cloud services in corporate environment for smaller projects, which helps the developers to stay creative
If I had to deploy multiple surveys with a nice UX I’d try to establish a survey platform based on well developed open source projects with a free tier to prove the concept internally, like Product Licensing | SurveyJS | Open-Source JS Form Builder
I’m not affiliated with the SurveyJS. It is just the most advanced form management library I have ever met.