# Extends Email Edit Form

**URL:** <https://forum.mautic.org/t/extends-email-edit-form/33654>\
**Category:** Product Support\
**Created:** [September 30, 2024, 10:31am UTC](https://forum.mautic.org/t/extends-email-edit-form/33654 "2024-09-30T10:31:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.piazza.pro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/paul.piazza.pro/32/13297_2.png) [@paul.piazza.pro](https://forum.mautic.org/u/paul.piazza.pro)\
**Post date:** [September 30, 2024, 10:31am UTC](https://forum.mautic.org/t/extends-email-edit-form/33654/1 "2024-09-30T10:31:37Z")

</div>

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 ?

 ![edit-email](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/f4aa23b93adb8d399ed72a5d385508faf7230129.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 30, 2024, 11:49am UTC](https://forum.mautic.org/t/extends-email-edit-form/33654/2 "2024-09-30T11:49:18Z")

</div>

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

> <https://github.com/mautic/mautic/pull/10401>
>
> | Q | A
> | --------------------------------…------ | ---
> | Branch? | features
> | Bug fix? |no
> | New feature? | no
> | Deprecations? | no
> | BC breaks? | no
> | Automated tests included? | no
> | Related user documentation PR URL | not provided
> | Related developer documentation PR URL | not provided
> | Issue(s) addressed | not provided
> 
> I'm currently developing a plugin where I want to extend the email form template. I want to implement a new tab where i can insert additional settings to. These "hooks" give me te possibility to do so.
> 
> \<a href="https://gitpod.io/#https://github.com/mautic/mautic/pull/10401"\>\<img src="https://gitpod.io/button/open-in-gitpod.svg"/\>\</a\>

Joey

---

<div class="post-metadata">

**Author:** ![paul.piazza.pro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/paul.piazza.pro/32/13297_2.png) [@paul.piazza.pro](https://forum.mautic.org/u/paul.piazza.pro)\
**Post date:** [September 30, 2024, 2:22pm UTC](https://forum.mautic.org/t/extends-email-edit-form/33654/4 "2024-09-30T14:22:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![paul.piazza.pro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/paul.piazza.pro/32/13297_2.png) [@paul.piazza.pro](https://forum.mautic.org/u/paul.piazza.pro)\
**Post date:** [October 1, 2024, 7:40am UTC](https://forum.mautic.org/t/extends-email-edit-form/33654/5 "2024-10-01T07:40:38Z")

</div>

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.
