merge 2 datasets for email attachment

Formidable Forms
13 February, 2023 06:22:47
SDW10
Topics: 2
Messages: 6
Hi,
I have seen that it is possible to select 2 different formidable forms on a template. Visual mapper works fine - I can see both forms and the fields. However, if I use the attachment-shortcode to send a merged pdf by email only one dataset is shown.

Can you help please.
Many thanks
Christoph
13 February, 2023 06:34:31
SDW10
Topics: 2
Messages: 6
Hi,
an addition to my request...
I have seen on your site Formidable to PDF the following shortcode:
[e2pdf-frm-entry-values id="form_id" field_id="field_id"] - Dynamic field value of another form
Usage: [e2pdf-frm-entry-values id="123" field_id="12"]
Should this still work? (I tried without success). I just need to pull the value of one field from another form to my template...
Thanks
Christoph
13 February, 2023 06:48:12
E2Pdf
Support
Topics: 7
Messages: 3330
Hi,

E2Pdf can't know which 2nd dataset must be used, so the submitted entry must have a link to the 2nd Entry ID. For example, it can be Dynamic Field: https://formidableforms.com/knowledgebase/dynamic/, and the shortcode will look like this:

[e2pdf-attachement id="1" dataset="[id]" dataset2="[123 show=id]"]

* where "123" is the Dynamic Field ID.

Or if you can pull out the 2nd Entry ID which must be used inside E2Pdf Template in "hidden" field:
[e2pdf-attachement id="1" dataset="[id]" dataset2="[123]"]

* where "[123]" must output 2nd Entry ID.

Another possible way:

If you have all users logged in to submit the form, you do not need 2 Forms E2pdf Template, you can try to use shortcodes inside E2Pdf Template or in a hidden field in the main form as:

[frm-field-value field_id=123 user_id=current]

https://formidableforms.com/knowledgebase/get-a-value-from-an-entry/#kb-usage

P.S. [e2pdf-frm-entry-values id="123" field_id="12"] - must output ALL data from all entries and not the "single" entry.
We would really appreciate your feedback at WordPress.org!
13 February, 2023 08:00:02
SDW10
Topics: 2
Messages: 6
thanks for your quick reply. The P.S. hint seems to be promising, I did not realize that it must be a hidden field...