changing the entry id selector in the gravity pdf action hook
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 27 Apr 2017 18:30:46 +0000 (14:30 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 27 Apr 2017 18:30:46 +0000 (14:30 -0400)
had the wrong entry id in the gravity pdf hook that appends data to the pdf entry
after it has been generated

functions.php

index f5ea1c9..9aa68cc 100644 (file)
@@ -397,7 +397,7 @@ function change_post_content( $form ) {
 }
 add_action( 'gfpdf_post_html_fields', function( $entry, $config ) {
         if($entry['form_id'] === '2'){
-            echo "<div class='gf_right_half' style='font-weight: bold;width: 200px;margin-right: 10px;color: black;'> DISCOUNTED TOTAL: " . $entry['21'] . "</div>";
+            echo "<div class='gf_right_half' style='font-weight: bold;width: 200px;margin-right: 10px;color: black;'> DISCOUNTED TOTAL: " . $entry['20'] . "</div>";
         }