Form Node "Defining the form using JSON" question

I’m working on a workflow that calculates the score for the Wizard Game, and I’ve encountered a small problem.

I’m defining a form using JSON to input bids and tricks for each round and also display the current score for each player. However, I can’t find a way to show just the score number as plain text.

Can I use Custom HTML in this mode, or is there another way to achieve this?

Information on your n8n setup

  • **n8n version:**1.86
  • **Database (default: SQLite):**Postgres
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):**queue
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**Docker
  • **Operating system:**Linux
1個讚

hello @Ruslan_Yanyshyn

You can use custom HTML (preferable way) or add a score to the field name (e.g. Ben Bid (score: 123) )

Hello @barn4k

But how I can use it by defining JSON I can’t see it is mentioned in docs.

What would be field type?

[
   {
      "fieldLabel":"Age",
      "fieldType":"????",
      "placeholder":"enter your age"
   }
]

Ah, you have a dynamic form…

Currently, it’s not possible to set an HTML field via JSON (dunno why)

That’s the point. Maybe someone from the n8n team @bartv can shed some light on this?

I have no idea but I’ve asked the Nodes team for help :slight_smile:

1個讚

Hey @Ruslan_Yanyshyn, great use case for the form node! :tada:
This issue you are seeing comes down to the fact that we’re using the HTML editor to render the HTML block in the Node Details View. But I do understand the usefulness of your scenario, so we’ve made a ticket to see if we can enable it. Will report back!

3個讚

@pdwarf, thank you! Looking forward to it.

1個讚

Hey @pdwarf Any news on the topic?

1個讚

Just wanted to gently follow up on this! It’s been a little while, and I’m still really keen to hear if there’s been any progress on enabling set an HTML field via JSON.

2個讚

Nothing yet, We have the ticket to look into it but other higher priority changes have pushed it down the list a bit. Once we have released it though we will let you know.

2個讚

Hey guys,

Do I get it right that hidden fields are also not available to be enabled through the JSON in n8n forms?