Is there a way to include the contents of an HTML field in the confirmation email?
Thanks in advance,
Kim
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!
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
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
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