Populate n8n Form Dropdown with data from Data Table

Describe the problem/error/question

I want to create a dynamic dropdown in an n8n Form that displays a list of values stored in an n8n Data Table.
The dropdown should update automatically if the Data Table is updated.
Constraints / Notes:
The Form Trigger is the first node in the workflow, so I cannot use $items() or other nodes downstream to populate the dropdown directly.
The dropdown must display each value on a separate line with proper label/value pairs.
Ideally, the solution should be fully dynamic and not require manual updates when the Data Table changes.

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.9.4
  • Database (default: SQLite): POSTGRESDB
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Google Cloud Run

Hi @Abdel-Aal_Shams_IFCV
Welcome to the community :waving_hand: !
It’s not possible to dynamically populate the dropdown using only a Data Table after the Form Trigger in the same workflow. You need to use an auxiliary workflow or intermediate endpoint.

1 Like

Yeah the Form Trigger can’t reference other nodes since it’s the entry point of the workflow, there’s no execution context yet. What you want to do is split it into two pages — keep Nom/Prénom on the Form Trigger as page 1, then fetch your Data Table records, and use a second Form node for the dropdown on page 2. That Form node can use expressions since it has upstream data at that point. There’s actually an official template for this exact pattern: Form with dynamic dropdown field | n8n workflow template

2 Likes

Thanks a lot for the clarification and for pointing out the template ! That makes perfect sense, I’ll try splitting the form into two pages as you suggested. Appreciate your help! :smiling_face_with_three_hearts:

Thanks so much for the clarification and the warm welcome ! :smiling_face_with_three_hearts:

1 Like

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