Skip to main content
Version: 4


Jump To Section


Checkboxes, Multiselect, Radio, Select and Product fields allow both labels and values to be set in the form Editor. By default, all core PDF templates will display a field's label instead of the value. Use this filter to show the field value instead.


This action was introduced in Gravity PDF 4.1.


$show_value | boolean : Return true to display the value of radio, select, multiselect, checkbox and product fields in the core PDFs


add_action( 'gfpdf_show_field_value', function( $show_value ) {
return true;
}, 10 );

Source Code

This filter is located in the Field_Checkbox.php, Field_Multiselect.php, Field_Radio.php, Field_Select.php and Field_Products.php files in the /src/helper/fields/ directory.