PDF not showing up for download after form submission.

22 January, 2019 09:18:00
andreabk
Topics: 5
Messages: 12
Hi, I already sent this to the PRO2PDF support email, but didn't get the reply, so I am pasting the question here below. Many thanks.

I have a problem with one (and only one) template, which is not showing up for download after form submission. I am copying and pasting the code [e2pdf-download id="13"] in the confirmation page, but nothing happens. Maybe of interest: previously this form was associated with a template of PRO2PDF. I have deactivated the form in PRO2PDF and even deactivated the PRO2PDF plugin itself to avoid conflicts, but yet nothing happens. Notably, the shortcode for the attachment ([e2pdf-attachment id="13"]) regularly works, and the pdf comes regularly filled.

Thanks,

Andrew
(I have both PRO2PDF and E2PDF licenses).

PS: this is how the confirmation page with the non-working shortcodes looks like:

[e2pdf-download id="13"]

[e2pdf-save id="13"]

Order successfully submitted, thank you!
22 January, 2019 09:28:11
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

Can you check please if you do not have "checkbox" checked on "Do not store entries submitted from this form"?

Do shortcodes removed on form submission and you get just "Order successfully submitted, thank you!"? Or shortcodes still showed up on frontend?

We remain at you service.
We would really appreciate your feedback at WordPress.org!
25 January, 2019 15:00:03
andreabk
Topics: 5
Messages: 12
Hi,

I confirm that "Do not store entries submitted from this form" is NOT checked.

I also confirm that on front end of the submission confirmation page NO shortcodes are appearing (even if they have been placed in the page editor). SO, the last short code I have placed is [e2pdf-download id="13" inline="true"]. This does not work (and does not show up as shortcode in the front end).
25 January, 2019 16:25:31
E2Pdf
Support
Topics: 7
Messages: 3335
Are you able to export entries from "E2Pdf" -> "Export" for this form? If yes, try to put shortcode with "dataset" parameter and check if it will be rendered:

[e2pdf-download id="13" dataset="14"] - where 14 is the correct Entry ID for this form. If it will work try to modify shortcode to [e2pdf-download id="13" dataset="[id]"] and check if it will fire.

If it's acceptable for you, you can submit support ticket here with access details so we can faster investigate the issue and prepare possible fix as we can't replicate an issue on our side so it seems the problem with exactly that form.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
25 January, 2019 19:21:08
E2Pdf
Support
Topics: 7
Messages: 3335
Can you let me know please are you using "On Submit" -> "Use Content from Page"? (Screenshot attached) or it is "Show Message"?

We remain at your service.
We would really appreciate your feedback at WordPress.org!
25 January, 2019 19:33:02
andreabk
Topics: 5
Messages: 12
This is set as:

Redirect to URL >>> https://mysite.com/order-confirmation/
25 January, 2019 19:47:37
E2Pdf
Support
Topics: 7
Messages: 3335
Unfortunately this is the problem why shortcode not work.

Redirect URL doesn't contains any data from "Formidable Forms" and shortcode fails on render. [e2pdf-download id="13"] will work only on "Success Message", "Email", or "View". In theory you can somehow send Entry ID to "Redirect page" with "GET" or "POST" request and:

a) Grab it, generate shortcode [e2pdf-download id="13" dataset="1111"] with "dataset" parameter, and fire it.

or

b) Grab it and generate "Formidable View" with single entry where [e2pdf-download id="13" dataset="[id]"] will work.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
25 January, 2019 19:59:15
andreabk
Topics: 5
Messages: 12
Fantastic! I have set it to "Show page content" and it works fine! (The "redirect to URL" setting was there just because previously this form was linked to PRO2PDF).

Which short code may I use to have the pdf automatically opened in a new browser tab?

Many thanks!

Andrea
25 January, 2019 20:22:33
E2Pdf
Support
Topics: 7
Messages: 3335
You can set it when editing Template: "Settings" -> "Template" -> "Auto Download" or add parameter to shortcode auto="true". But keep in mind that most browsers will block auto opening PDF in new tab due popup restriction. If PDF will not be "inline" - then it must be okay.

We remain at your service.
We would really appreciate your feedback at WordPress.org!