# Content of HTML field in confirmation email \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/content-of-html-field-in-confirmation-email-resolved/9976>\
**Category:** Get Help\
**Tags:** custom, gform\_confirmation, gravity-wiz, css\
**Created:** [June 23, 2021, 6:37pm UTC](https://community.gravityforms.com/t/content-of-html-field-in-confirmation-email-resolved/9976 "2021-06-23T18:37:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksingleton](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/ksingleton/32/3137_2.png) [@ksingleton](https://community.gravityforms.com/u/ksingleton)\
**Post date:** [June 23, 2021, 6:37pm UTC](https://community.gravityforms.com/t/content-of-html-field-in-confirmation-email-resolved/9976/1 "2021-06-23T18:37:43Z")

</div>

Is there a way to include the contents of an HTML field in the confirmation email?

Thanks in advance,  
Kim

---

<div class="post-metadata">

**Author:** ![samuel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/samuel/32/2539_2.png) [@samuel](https://community.gravityforms.com/u/samuel)\
**Post date:** [June 23, 2021, 10:45pm UTC](https://community.gravityforms.com/t/content-of-html-field-in-confirmation-email-resolved/9976/2 "2021-06-23T22:45:39Z")

</div>

Hi Kim,

You can use our free [All Fields Template](https://gravitywiz.com/gravity-forms-all-fields-template/) Plugin, to include HTML fields in the notification email. Once you install and activate the plugin, you would be able to use the, “include modifier”, to add the HTML field to the output of the {all\_fields} merge tag.

So you would have something like this,**{all\_fields:include[2,4]}** in the notification message box, where 2 and 4 will be the IDs of the HTML fields you want to include in the content.

> **[Gravity Forms All Fields Template - Gravity Wiz](https://gravitywiz.com/gravity-forms-all-fields-template/)**
>
> This plugin provides templating support for the {all\_fields} merge tag, letting you replace the markup generated with the contents of a file.

---

<div class="post-metadata">

**Author:** ![user619d8262b8a14753](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user619d8262b8a14753/32/4030_2.png) [@user619d8262b8a14753](https://community.gravityforms.com/u/user619d8262b8a14753)\
**Post date:** [November 24, 2021, 5:17pm UTC](https://community.gravityforms.com/t/content-of-html-field-in-confirmation-email-resolved/9976/3 "2021-11-24T17:17:02Z")

</div>

Hey @samuel - this works really well but on the form I’m making at the mo, I have a lot of HTML blocks - is there a way of doing ‘all’ for HTML rather than having all the IDs?  
Thanks!

---

<div class="post-metadata">

**Author:** ![samuel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/samuel/32/2539_2.png) [@samuel](https://community.gravityforms.com/u/samuel)\
**Post date:** [November 24, 2021, 5:52pm UTC](https://community.gravityforms.com/t/content-of-html-field-in-confirmation-email-resolved/9976/4 "2021-11-24T17:52:38Z")

</div>

Hi @user619d8262b8a14753 ,

It will require a bit of customization or an extra snippet to get it working the way you want. If you have an active Gravity Perks License, you can get in touch with us via our [Support form](https://gravitywiz.com/support/) so we assist you further. If you don’t have a license, you can take advantage of our [Black Friday sale](https://gravitywiz.com/pricing) to get a license at a discounted price.

Best,

---

<div class="post-metadata">

**Author:** ![user619d8262b8a14753](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user619d8262b8a14753/32/4030_2.png) [@user619d8262b8a14753](https://community.gravityforms.com/u/user619d8262b8a14753)\
**Post date:** [November 24, 2021, 6:06pm UTC](https://community.gravityforms.com/t/content-of-html-field-in-confirmation-email-resolved/9976/5 "2021-11-24T18:06:51Z")

</div>

Thanks @samuel - I’ve not got a license (only got Gravity Forms itself yesterday - what an upgrade from CF7!) so I’ll take a look at what else you guys do and make do with the IDs in the meantime 🙂

---

<div class="post-metadata">

**Author:** ![samuel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/samuel/32/2539_2.png) [@samuel](https://community.gravityforms.com/u/samuel)\
**Post date:** [November 24, 2021, 6:46pm UTC](https://community.gravityforms.com/t/content-of-html-field-in-confirmation-email-resolved/9976/6 "2021-11-24T18:46:14Z")

</div>

Hi @user619d8262b8a14753 ,

Can you try [this snippet](https://snippi.com/s/ksx2gbg) and see if it works for you. Add the snippet to your function.php file and update the {all\_fields} merge tag to this **{all\_fields:allowHtmlFields}**. This snippet doesn’t actually require the All Fields Template plugin to function.

I hope this helps. Welcome to Gravity Forms😃

Best,

---

<div class="post-metadata">

**Author:** ![user619d8262b8a14753](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user619d8262b8a14753/32/4030_2.png) [@user619d8262b8a14753](https://community.gravityforms.com/u/user619d8262b8a14753)\
**Post date:** [November 25, 2021, 11:36am UTC](https://community.gravityforms.com/t/content-of-html-field-in-confirmation-email-resolved/9976/7 "2021-11-25T11:36:12Z")

</div>

Thank you for the welcome and thank you for the snippet! Worked perfectly 🙂

I checked out what you guys have and already have some places I can use, so I’ll probably be taking advantage of that Black Friday sale, too!

Thanks again

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 27, 2021, 5:36am UTC](https://community.gravityforms.com/t/content-of-html-field-in-confirmation-email-resolved/9976/8 "2021-11-27T05:36:30Z")

</div>

Closed on November 27, 2021, 5:36am UTC


