← All N8N workflows
Data & databasesCodeExecute WorkflowForm TriggerGoogle SheetsGoogle Sheets Trigger

Form with Dynamic Dropdown Field

Configured with Execute Workflow, Form Trigger, Google Sheets, Google Sheets Trigger, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
Integrationn8n | get wfN8NIntegrationn8n | updateN8NTriggerOn form submissionForm TriggerTriggerGoogle Sheets TriggerGoogle Sheets TriggerSubworkflowExecute WorkflowExecute WorkflowCodeWrite JSONCodeTransformReplace valuesEdit FieldsData storeGet all valuesGoogle SheetsTransformFormat to 'values'Edit Fields

Node categories in this workflow

  • Integration
  • Trigger
  • Subworkflow
  • Code
  • Transform
  • Data store

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
n8n | get wfIntegrationN8Nget
n8n | updateIntegrationN8Nupdate
On form submissionTriggerForm TriggerSee node parameters
Google Sheets TriggerTriggerGoogle Sheets TriggerSee node parameters
Execute WorkflowSubworkflowExecute WorkflowSee node parameters
Write JSONCodeCodeSee node parameters
Replace valuesTransformEdit FieldsSee node parameters
Get all valuesData storeGoogle SheetsSee node parameters
Format to 'values'TransformEdit FieldsSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleSheetsOAuth2Api
  • googleSheetsTriggerOAuth2Api
  • n8nApi

Workflow notes

Form setup

Form setup

  • Customize your form fields.
  • The dropdown field will auto-update with values from your data source.
  • Other form fields can be added as needed (limited to one dropdown field).
  • Connect to your workflow that processes the submitted form data.

Form requires production mode for testing

Data source setup

Data source setup

  • Connect to your Google Sheet containing dropdown values
  • Node can be replaced with any other data source (API, database)
  • Set timing trigger
Data formatting

Data formatting

  • Extracts needed data from source
  • Renames field to 'value' (do not change this name)
Nested properties

Nested properties

  • Transforms the data to the desired format
Get Workflow

Get Workflow

  • Gets the current workflow data
Add Dropdown Values

Add Dropdown Values

  • Replaces the nested parameters of the Dropdown Form Field with the nested properties sourced from the data.
Update Form

Update Form

  • Replaces the current workflow’s JSON with the updated JSON containing the new Dropdown values.
Form with Dynamic Dropdown Field

Form with Dynamic Dropdown Field

Purpose and structure

This folder contains the Form with Dynamic Dropdown Field workflow. Its executable nodes use code, executeWorkflow, formTrigger, googleSheets, googleSheetsTrigger, n8n, set. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

On form submission, Google Sheets Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Code/1630_Code_Form_Automation_Triggered.json MIT; preserve source notices.

More in Data & databases