Combine all previous node information into one output

Hello everyone!

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.

What is the error message (if any)?

There is no error message.

Please share your workflow

Share the output returned by the last node

[
{
“Bundesland”: “Sachsen”,
“submittedAt”: “2025-03-19T08:58:08.403-04:00”,
“formMode”: “test”
}
]

Possible Solution

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.

Information on your n8n setup

  • n8n version: 1.84.0
  • Database (default: SQLite): PostgresDB
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu24.04

Many thanks in advance for a solution to my problem.

Greets Steffen

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.

1 Like

Hi @Olek,

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 do not think n8n forms are well suited to implement complex business logic.

I’d go for Typeform or Google Forms.

With Google Forms you can control flow (not as flexibly as on other platforms but still) by defining transitions between form sections (pages) using

  1. drop-down user’s input
  2. next section control
    and user’s inputs can be nicely collected in a spreadsheet.

Then you just build workflow that starts with a Google Sheet trigger node (on row added) and have all data from user as an input.



Drop down control

Section flow control

Spreadsheet connection

Hey @SKis , did you manage to devise an elegant solution? I am curious.

Hello @Olek,

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 :slightly_smiling_face:

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.

Happy n8ning!

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