Extends Email Edit Form

Hello,

I would like to add YesNo button in the form of the email. This specific field will be in my plugin I’m currently developping. It will not a new field of the email entity.

My question is : is it possible to extend the email view form? Can I create in my plugin a view form.html.php which extends from Email content view MauticEmailBundle:Email:form.html.php ? Is there a ready to go extending form like UI extending ?

Hello,
Is this PR pointing you at the right direction?

Joey

Sounds good. This exactly what I was loking for. If I understand well I will be able to add a custom tabs in the template form.

I’m checking how to use it and give an answer of my implementation.

I use CoreEvents::VIEW_INJECT_CUSTOM_CONTENT event and try to add my custom form there.

I can see that CoreEvents::ON_FORM_TYPE_BUILD best fit in my case but is deprecated.

I need that this field is submitting at the same time of the “Save” email.