<?php
/**
* Gravity Perks // GP Post Content Merge Tags // Use Merge Tags from Form A in HTML Field on Form B w/ Gravity PDF
* http://gravitywiz.com/documentation/gravity-forms-post-content-merge-tags/
*/
add_action( 'gfpdf_pre_pdf_generation', function( $form, $entry, $settings, $pdf ) {
// Update "123" to the ID of your Form B.
$target_form_id = 123;
// Update "3" to the field ID of your Source Pretty ID field.
$pretty_id_field_id = 3;
$pretty_id = rgar( $entry, $pretty_id_field_id );
if( ! function_exists( 'gp_post_content_merge_tags' ) || $form['id'] != $target_form_id || ! $pretty_id ) {
return;
}
$_GET['eid'] = $pretty_id;
}, 10, 4 );