Form fields in json format not coherent

Hello everyone !

Describe the problem/error/question

I am configuring a “next page” form node, where I specify form fields in json format. The problem is that even if I declare fieldName and fieldLabel, I don’t get node results (output) with fieldName.

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 2.4.5
  • Database (default: SQLite): PostgreSql 16
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud run
  • Operating system:
1 Like

Hi @inssaf!
From your screenshots, nothing is wrong with your JSON. The Next Form Page node won’t show output when you click "Execute step” because it only defines the form structure. You’ll only see the field values using “fieldName” after you submit the form through the Test or Production URL and then check the full workflow execution.

1 Like

Looking at your screenshot the output is actually coming back with "type something": "hi" which is the fieldLabel, not "typesometing" which is what you set as fieldName. So the node is ignoring your fieldName and falling back to fieldLabel as the output key, that’s a bug. The JSON mode for the Form node has had a few rough edges like this, I’d recommend opening an issue on the n8n GitHub repo at GitHub · Where software is built since there have been similar reports around JSON-defined form fields not behaving correctly. In the meantime you could work around it by just setting your fieldLabel to whatever key name you actually want in the output, not ideal but it should unblock you.

2 Likes

Hello @tamy.santos thanks for the reply! yes I’m talking about the output after form submission. Normally FieldName is what is used in the output of the Form node and to reference the field in expressions, and fieldLabel is the label that appears above the input field on the rendered form.In my example, I want that “type something” to be the label and “typesomething” to be the name reference of that field. but after execution, the workflow is referencing to that field by the label name instead of the fieldName as shown in the screenshot.

1 Like

Thank you, I reported the issue but when they attempted to reproduce the problem, they weren’t able to replicate it form node in json format not behaving correctly · Issue #26351 · n8n-io/n8n.

I didn’t see the their reply this weekend until this morning but it was too late, issue closed. So I’ll keep waiting here to see if there’s someone else encountering the same problem.

PROBLEM SOLVED : all I had to do was upgrading n8n version

1 Like

Hi everyone! I still have the same problem. Any suggestions? Thanks.

  • Community Edition 2.10.2
  • Installed on Docker; 28.5.1, build e180ab8
  • DB: PostgresSQL 16, default
  • OS: Red Hat 14.2.1-7

hmm try switching back to v2.9.4

Thank you for your suggestion. I Tried but it didn’t work.

Any idea?

show us your workflow

How can I hide credentials for sending mail? I use a send form with human in the loop interaction