Skip to content

Conversation

@jessrynkar
Copy link
Member

What?

Adds the formSubmissionID as a variable in submissionData so it can be used in email templates via double curly brackets {{formSubmissionID}}.

Why?

The plugin determines when emails are sent and what data is available to be used. Currently this is being done via the collection beforeChange and the formSubmissionID does not exist at this point because the doc hasn't been fully created yet.

This causes an issue for users wanting to including a direct link to the submission in the email.

How?

  1. Moves the sendEmail functionality into the collection afterChange hook.
  2. In addition, it takes the formSubmissionID and passes it along with the rest of the submission data.

Issue reported by client.

@jessrynkar jessrynkar force-pushed the fix/plugin-form-builder-emails branch from 7251f67 to 1cc7989 Compare October 31, 2025 12:27
@github-actions
Copy link
Contributor

github-actions bot commented Oct 31, 2025

📦 esbuild Bundle Analysis for payload

This analysis was generated by esbuild-bundle-analyzer. 🤖
This PR introduced no changes to the esbuild bundle! 🙌

@jessrynkar jessrynkar marked this pull request as draft October 31, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants