Create a pdf from a view (multiple entries)

Formidable Forms
8 June, 2022 08:45:13
mnmyco
Topics: 1
Messages: 4
Is there any way to use e2pdf to create a pdf of a formidable view or simulate a table view of multiple entries from a form in a pdf? I have views that are tables of entries and can be exported as CSV files. I want to be able to provide these to users as formatted files so I can set field widths for printing instead of having to do that in a spreadsheet program after download.
8 June, 2022 09:15:15
mnmyco
Topics: 1
Messages: 4
I read another post on this topic. This view does use a parameter to filter by: [get param=event default="none"]. I need to filter the results to get sign-ups for a single event because the form is used to sign up for different events.
9 June, 2022 01:53:20
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

You can try to:

1. Use shortcode below Inside Formidable Forms View which is filtered by "event":

[e2pdf-exclude][e2pdf-download id="1" dataset="123" arg1="[get param=event default=none]"][/e2pdf-exclude]

where:
* "1" - is E2Pdf Template ID
* "123" - is any Entry ID under the form to which connected E2Pdf Template.
** [e2pdf-exclude] will remove the shortcode from render inside PDF directly.

2. Inside E2Pdf Template it must be used Formidable Forms View shortcode as:

[display-frm-data id=2186 filter="limited" event="[e2pdf-arg key=arg1]"]

where:
* "2186" - is Formidable Forms View ID

P.S. If [e2pdf-exclude] will not work correctly update please plugin to latest RC version by following steps in current topic: https://e2pdf.com/support/desk/how-to-update-plugin-to-rc-release-candidate-version-from-e2pdf-com.

P.P.S. It currently can be issue with correct shortcode render inside "Editor" however it must work as expected when "View" published. We are currently working on fix.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
9 June, 2022 10:44:19
mnmyco
Topics: 1
Messages: 4
Thanks for your reply. I'm not sure what you mean by "use shortcode below inside Formidable Forms View". Where inside? I had read in another post to use the shortcode for the value of an HTML field in the template. Is this not what I should do?
I'd like to show this view on a page and add an e2pdf shortcode to the same page to download the pdf of the view. But I'm also wondering if I'll be able to layout the data in the view the way I would like it to be displayed.
9 June, 2022 10:50:14
mnmyco
Topics: 1
Messages: 4
By inside Formidable Forms View, do you mean to replace the filter that uses the parameter? See the screenshot attached.
10 June, 2022 01:07:22
E2Pdf
Support
Topics: 7
Messages: 3163
Hi.

So you currently has already created "View". To output this view inside PDF it must be used shortcode on the "View" page, for example inside "Before Content".

The view must be placed on page so it will work like this:

When user visit page with Formidable Form view by URL https://example.com/page/?event=event - "event" get parameter will be sent to PDF via "arg1" parameter:

[e2pdf-exclude][e2pdf-download id="1" dataset="123" arg1="[get param=event default=none]"][/e2pdf-exclude]

Inside "PDF" it will be rendered Formidable Form View shortcode ([display-frm-data id=2186 filter="limited" event="[e2pdf-arg key=arg1]"]
) which will send back "event" get parameter to "View" and like this it must be rendered information from it inside PDF.

E2Pdf has limited support of "HTML" however if you will be using simple table layout and place shortcode to E2Pdf "HTML" object - it could work.

If we miss-understand something or it doesn't work for you attach please some more screenshot with current setup of E2Pdf Template / Shortcodes inside "View" / etc.
We would really appreciate your feedback at WordPress.org!