Filter for fields

Gravity Forms
May 27, 2020 13:42:02
israelj
Topics: 13
Messages: 17
Is there a Wordpress Filter for fields before the PDF is generated?

Example: we want to store certain fields in an encrypted format, but want the unencrypted value to be shown on the PDF.

Thanks!
May 27, 2020 18:31:39
E2Pdf
Topics: 7
Messages: 3617
Support
Hi,

There is a hook 'e2pdf_extension_render_shortcodes_value' which is used to output value before render to PDF but after processing of shortcodes which seems what you need:

$value - current value that was already replaced by Gravity Forms shortcode
$element_id - element id of E2Pdf field/object which you can get by "Right Mouse Click" -> "Properties".
$template_id - is template id where this field located
$item - Gravity Forms Form ID
$dataset - current entry

https://codeshare.io/alnzDD

Example is prepared to be added to functions.php


add_filter( 'e2pdf_extension_render_shortcodes_value', 'my_filter_function', 10, 5 );

function my_filter_function($value, $element_id, $template_id, $item, $dataset) {
return $value;
}


We remain at your service.

We would really appreciate your feedback at WordPress.org!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.