Wait node with Form trigger is not when we have the node in sub-workflows or in webhook workflows which gets triggered from main workflow

Describe the problem/error/question

Wait node with Form trigger is not when we have the node in sub-workflows or in webhook workflows which gets triggered from main workflow

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):
  • Operating system:

Hi @shakthipsg — just to clarify: are you using the Wait node inside a sub-workflow that’s called from the main workflow? The Form trigger context can be tricky there because the form session is tied to the main workflow execution, not the sub-workflow. Could you share a minimal reproduction workflow so we can see the exact setup?

1 Like

Hi @shakthipsg
What @Benjamin_Behrens is describing has been fixed in the v2.0.0 of n8n so consider updating to the latest stable version and your issue would be resolved.

And if you are using v1.x.x see this:

1 Like

Our n8n version is 2.11.2

Main Workflow:
{
“nodes”: [
{
“parameters”: {},
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
11808,
3648
],
“id”: “38b2d2e0-aeb8-417f-98f4-249f07a354b3”,
“name”: “Main Trigger”
},
{
“parameters”: {
“method”: “POST”,
“url”: “=http://localhost:5678/webhook/webhook”,
“sendQuery”: true,
“queryParameters”: {
“parameters”: [
{}
]
},
“sendBody”: true,
“specifyBody”: “json”,
“jsonBody”: “={{ $json }}”,
“options”: {
“timeout”: 3600000
}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.3,
“position”: [
12048,
3648
],
“id”: “41f529d3-c8ae-4133-8a6b-6943cb2a099b”,
“name”: “Webhook Trigger”,
“alwaysOutputData”: true,
“executeOnce”: false
}
],
“connections”: {
“Main Trigger”: {
“main”: [
[
{
“node”: “Webhook Trigger”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “88bde7fa62561e3aec0da846cf229a3a76f95f30f2806f08f58d1a534d2f0004”
}
}

Webhook Workflow:
{
“nodes”: [
{
“parameters”: {
“httpMethod”: “POST”,
“path”: “webhook”,
“options”: {}
},
“type”: “n8n-nodes-base.webhook”,
“typeVersion”: 2.1,
“position”: [
12240,
3792
],
“id”: “bd3044b3-10cb-4c67-8c2f-5b718d5f3832”,
“name”: “Webhook”,
“webhookId”: “d8370d0f-c16c-426e-9860-dc16a3fb83e9”
},
{
“parameters”: {
“resume”: “form”,
“formTitle”: “Test Approval”,
“formFields”: {
“values”: [
{
“fieldLabel”: “Approve or Decline”,
“fieldType”: “radio”,
“defaultValue”: “Approve”,
“fieldOptions”: {
“values”: [
{
“option”: “Approve”
},
{
“option”: “Decline”
}
]
},
“requiredField”: true
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.wait”,
“typeVersion”: 1.1,
“position”: [
12448,
3792
],
“id”: “a47ae90f-266a-449f-8591-5db76a848361”,
“name”: “Wait”,
“webhookId”: “1fe40694-d64a-4823-a7ea-30af1a85e5b9”
}
],
“connections”: {
“Webhook”: {
“main”: [
[
{
“node”: “Wait”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “88bde7fa62561e3aec0da846cf229a3a76f95f30f2806f08f58d1a534d2f0004”
}
}

Webhook workflow moves to Waitng state, but not getting the Form Pop-up or link to launch the Form Pop-up in the Wait node from executions.

@shakthipsg i think as the flow got executed by the HTTP request maybe that is why it is not showing that auto open popup and not via the n8n ui, i think you can try reading this {{ $execution.resumeFormUrl }} in any of the downstream node you can add maybe send or open that URL and possible everything should be working fine, let me know how that goes.