Skip to content

Load the chosen template's merge fields in Render Template - #10

Merged
Jesus-Shotstack merged 1 commit into
devfrom
growth/template-merge-fields
Nov 16, 2026
Merged

Jesus-Shotstack merged 1 commit into
devfrom
growth/template-merge-fields

Conversation

@Jesus-Shotstack

Copy link
Copy Markdown
Collaborator

Load the chosen template's merge fields in Render Template

Render Template makes people type each placeholder name by hand, and a wrong or missing name renders as a raw placeholder or fails the render.

Merge Fields Source gets a From Template option that lists the chosen template's merge fields, one input each. A field left empty, or added to the template later, goes out with the template's own value, read once per run from GET /templates/{id}. The inputs are text, because n8n's type check refuses a sheet's "5" in a number field, so the node gives each value the type of the template's own value.

Node version 2 makes From Template the default. n8n leaves defaults out of saved workflows, so changing version 1's default would switch every saved step. Saved steps stay on version 1, default to Fields and send the same request as before. Version 1 gets the option too, so saved steps can switch without a rebuild (MAINTAINING.md now allows this). There is no flag: the node version is the gate.

Verify: node scripts/review-check.mjs 40/40; npm test 98 pass, including test/template-fields.mjs.
Risk: none for saved steps. Revert to roll back.

@Jesus-Shotstack
Jesus-Shotstack merged commit f0b215c into dev Nov 16, 2026
1 of 2 checks passed
@Jesus-Shotstack Jesus-Shotstack mentioned this pull request Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant