Adding an extra field to the form > email config? #10418
-
I have a website where content editors frequently create various forms for signing up to events, and sometimes need to add custom messages on a form-by-form basis to the confirmation emails that get sent to the form sender. As the forms are created frequently, it's not practicable for me to create a new email template each time. Instead, I'd like give content editors a textarea field in the form config to add a custom message to the email body if they need to. Is there a straightforward way to do this? I've seen how to extend fieldtypes with appendConfigField but can't wrap my head around doing this for the email config field... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There's an open PR for this: #8491 In the meantime I've used a global set to store those extra values before. Not as tidy as having it all in one place but it works. |
Beta Was this translation helpful? Give feedback.
-
Personally I'd just create an additional form field with some fixed name like |
Beta Was this translation helpful? Give feedback.
There's an open PR for this: #8491
In the meantime I've used a global set to store those extra values before. Not as tidy as having it all in one place but it works.