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,
Kim

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?
Thanks!

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.

Best,

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šŸ˜ƒ

Best,

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

2 Likes