spivurno
3/3/2017 - 4:33 PM

Gravity Perks // GP Post Content Merge Tags // Replace Merge Tags as you Progress Through Form

Gravity Perks // GP Post Content Merge Tags // Replace Merge Tags as you Progress Through Form

<?php
/**
 * Gravity Perks // GP Post Content Merge Tags // Replace Merge Tags as you Progress Through Form
 * http://gravitywiz.com/documentation/gp-post-content-merge-tags/
 */
add_action( 'gform_pre_validation', function( $form ) {
    if( property_exists( 'GP_Post_Content_Merge_Tags', '_entry' ) ) {
	    GP_Post_Content_Merge_Tags::$_entry = GFFormsModel::get_current_lead();
    }
    return $form;
} );