HTML Block Merge Tag issue
-
I’m using Power Boost to help build a simple contract. The contract is pulling fields from a previous form page and populating an HTML Block with the final details.
I’d like for a copy of the contract (HTML Block) to be sent via GF email notifications. Unfortunately, HTML Blocks aren’t sent as part of the {all_fields} merge tag.
I found a code snippet (below) that will add it to the {all_fields} merge tag. The new problem is the emails show the merge tags instead of the final processed output. How do I get email notifications to render merge tags in HTML Blocks?
/** * Include HTML Fields in {all_fields} Merge Tag by Default **/ add_action( 'gform_merge_tag_filter', function( $value, $tag, $modifiers, $field ) { if ( $field->type == 'html' && $tag == 'all_fields' ) { $value = $field->content; } return $value; }, 10, 4 );
Thanks for your help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘HTML Block Merge Tag issue’ is closed to new replies.