Mass upload of options into a field of type dropdown in n8n form

Describe the problem/error/question

I’m new to n8n. I have created a n8n form with some questions. One question asks for the country. I used a question of type dropdown. Following the official UN list of countries there will be 245 options. Obviously I don’t want to type them in manually, one by one, so is there a way to mass upload that list of countries?

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: macOS

Hey @ChristopherG hope all is good. Welcome to the community.

What you can do is you can create form node with two options, then export the workflow (or copy the node), paste it into your code editor of choice and add more. Then copy the result and paste back.

Here is an example of the result. You can use mine if it has all the coutries:

1 Like

Hello @ChristopherG, hope all is well.
You can use my workflow for your needs

Reference:
[1] Dynamic options population of form node - #8 by mredodos
[2] n8n Form node documentation | n8n Docs

Thanks. At the end I edited the workflow in JSON after I prepared the list of countries also in JSON.

1 Like

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