Jump To Section
Gravity PDF does standard sanitisation of form fields but you might like to include your own special processing for any form PDF fields you add.
You can also use the
gfpdf_form_settings_sanitize_$type filter, where
$type refers to the field type – checkbox, select, ect.
$value | mixed : The new value of the current field being processed
$key | string : The ID of the field currently being processed
$input | array : An array containing all the current fields that should be updated
$field | mixed : The settings for the current field being processed
This snippet shows you how to correctly sanitise your custom Gravity PDF field:
You can also target your field directly using the field ID:
This filter is located in the
Model_Form_Settings::settings_sanitize() method of