Secure new Form send by mail via token


is there any way to implement a safe way for this flow:
We send a mail with a link to a n8nForm.
The link is secured by a token and after the form is submitted, the link is invalid?

Additionaly: Is there a way to preset a hidden value inside this form, like a user_id?

  • n8n version: 1.27.2
  • Database (default: SQLite): SQLite / Cloud
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own, main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system: Win11

Hey @Yuri,

There is no option to have a hidden value in the form at the moment, The first part is more interesting though… When you say “a safe way” what do you actually mean?

We do also have an option that could result in a temporary form url that would be unique to a workflow execution, If you use a wait node there is an option to Wait for a form to be submitted. So you could use that in a workflow to send an email but you would need to make sure you only send one email per execution so that the form url will be unique for the user.

Hi, thanks for your help!
With safe i meant a form which only can be accessed once.
“Wait” exactly did what i mean, just did not expect it there.

One more problem is that after wait i cannot access the form data.

The response doesn’t hold the response data from my second form:

Any ideas how to resuse the data from that second wait form?

Hey @Yuri,

You would need to copy the response from the execution run and pin it to the wait node that will then let you work with the output without having to guess the field names.