Hey Alvin,
Drop the following code in your active theme’s functions.php file will do the job:
if ( class_exists( '\GFPDF\Helper\Fields\Field_Form' ) ) {
class Field_Form_Original extends \GFPDF\Helper\Fields\Field_Form {
public function html( $value = '', $label = true ) {
$_GET['gf_page'] = 'print-entry';
$html = GFCommon::get_lead_field_display( $this->field, $this->get_value(), $this->entry['currency'] );
$html = apply_filters( 'gform_entry_field_value', $html, $this->field, $this->entry, $this->form );
unset( $_GET['gf_page'] );
return \GFPDF\Helper\Helper_Abstract_Fields::html( $html );
}
}
add_filter( 'gfpdf_field_class_form', function( $class, $field, $entry ) {
return new Field_Form_Original( $field, $entry, GPDFAPI::get_form_class(), GPDFAPI::get_misc_class() );
}, 10, 3 );
}
Hey Jake, It works! However i got a little problem. The header of each column is not not properly align. See this screenshot – https://snipboard.io/Zahexd.jpg
Thoughts?
Any response would be appreciated. Thank you!
Sorry for the delay – crazy week with Black Friday and all!
You’ll need to inject some CSS into the template to fix up the alignment. Use the gfpdf_core_template action to do this. To figure out what CSS selector(s) to use, the ?html=1 helper parameter and your browser dev tools will make this easy.
It works! Thank you very much..