Skip to content

FormTrigger Hidden Fields not being populated through url queries #13918

Description

@Diamon0

Describe the problem/error/question

When adding hidden fields to a FormTrigger node, and trying to populate it through url queries (?ref=xxxx), the hidden input is not filled accordingly, despite non-hidden fields being filled as expected. This happens both in testing and in production mode.

Please share your workflow/screenshots/recording

The node

Image

{
  "nodes": [
    {
      "parameters": {
        "formTitle": "Prueba",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Nombre",
              "placeholder": "Tu Nombre",
              "requiredField": true
            },
            {
              "fieldType": "hiddenField",
              "fieldName": "ref"
            }
          ]
        },
        "options": {
          "appendAttribution": false,
          "buttonLabel": "Enviar",
          "path": "formtest",
          "respondWithOptions": {
            "values": {
              "formSubmittedText": "Listo!"
            }
          },
          "ignoreBots": true
        }
      },
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.2,
      "position": [
        0,
        0
      ],
      "id": "65b996f9-96e8-4dbc-9957-1b978da842ad",
      "name": "On form submission",
      "webhookId": "f4efcdce-962b-45c6-9ab9-47b0dca46005"
    }
  ],
  "connections": {},
  "pinData": {},
  "meta": {
    "instanceId": "50759369f41cbf761ba2ef1a5a9e278543758c7f022a7815913b17de00294c2e"
  }
}

The Form HTML

Image

When trying to pre-fill the hidden field through the URL (By Name)

Image

Image

When trying to pre-fill a non-hidden field through the URL (By Name)

Image

Image

Sidestepping

I can instead use field-1 to fill it, but I don't believe this is intended behaviour, or if it is, I would love to know, but this tooltip makes me think otherwise.

Image

Debug info

core

  • n8nVersion: 1.82.3
  • platform: docker (self-hosted)
  • nodeJsVersion: 20.18.3
  • database: sqlite
  • executionMode: regular
  • concurrency: -1
  • license: enterprise (production)

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: memory

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (x11; linux x86_64; rv:136.0) gecko/20100101 firefox/136.0
  • isTouchDevice: false

Generated at: 2025-03-13T23:32:50.223Z}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs FeedbackWaiting for further input or clarification.in linearDEPRECATED

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions