arnoson / kirby-forms

Form builder and handler for Kirby 4
MIT License
10 stars 3 forks source link

Multiple email Templates for confirmation mail. #14

Open AlexanderBoenninger opened 6 months ago

AlexanderBoenninger commented 6 months ago

Idea for a new feature. Letting users choose the template for the email, if a certain field is filled or any other condition is fulfilled.

arnoson commented 2 months ago

I thought about it and I think this behaviour is a bit too specific for it to be included in the plugin. But since Kirby-Forms is super flexibel, such a behaviour can be added. Checkout the /example folder, there I included a special form called workshop. By using a custom blueprint, the editors can specify different email texts (could also be templates). Kirby-Forms default confirmation email is disabled for the workshop form. In a custom form model the correct email text is send instead.

Should document the form model approach with the custom actions somewhere...