verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
94 stars 70 forks source link

Ability to set the email notification content from Twig templates #1178

Open engram-design opened 1 year ago

JeffreyBenusa commented 1 year ago

More specifically - the ability to update the email notification's Send To on per entry level.

engram-design commented 1 year ago

That could be achieved by using a Hidden field, settings it's Visibility to "Hidden" (so that it's not rendered on the front-end), then using the population to populate the hidden field with your value, then using that field in the "Set To" setting for a notification.

engram-design commented 6 months ago

We'll probably employ something similar to submission snapshots, where you can store this override settings for notifications.

However, in order to do that, we'll need to implement https://github.com/verbb/formie/issues/1048 so we've got a good way to reference a notification, rather than via their ID, which would be pretty tricky.