Content of HTML field in confirmation email [RESOLVED]

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

Thanks in advance,

Hi Kim,

You can use our free 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.

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?

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 so we assist you further. If you don’t have a license, you can take advantage of our Black Friday sale to get a license at a discounted price.


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 :slight_smile:

1 Like

Hi @user619d8262b8a14753 ,

Can you try this snippet 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😃


Thank you for the welcome and thank you for the snippet! Worked perfectly :slight_smile:

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