e2pdf download link in form filed

Forminator Forms
May 27, 2021 04:30:10
www444
Topics: 1
Messages: 1
Hello
It is possible have e2pdf download link in form filed .
For ex. when sending form it save this link in for hidden filed
May 27, 2021 08:23:35
E2Pdf
Topics: 7
Messages: 3617
Support
Hi,

Unfortunately there is no built-in functionality to save PDF URL inside entry, however you can try to apply custom PHP hook. Code must be added to your theme functions.php:

https://codeshare.io/24loyj

It must be changed:

1251 - to your Form ID
223 - to your E2Pdf Template ID connected to form
hidden-1 - to your Forminator Hidden Field Key

It will generate clickable link, however if you wish to save just URL you will be need to use output="url" attribute as follows:

apply_shortcodes('[e2pdf-download id="223" dataset="' . $entry->entry_id . '" output="url"]')

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.