e2pdf download link in form filed

Forminator Forms
26 May, 2021 21: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
27 May, 2021 01:23:35
E2Pdf
Support
Topics: 7
Messages: 3156
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!