Hello,
I use webform2pdf to generate a pdf file from a webform.
When I download the pdf file, there is no problem.
BUT, If I select "join pdf file to mail" the pdf file is joined but I don't have the value of the field but the token. For example I receive %value[key] instead of 12345.

Comments

danihobbs’s picture

I am having a similar issue with %value[key] not working at all, even without emails.

danihobbs’s picture

Just for those that might have the same issue %value[fieldset_a][key_b] worked for me - I had my values in a fieldset

EKK’s picture

I have same proplem. Only date field print in pdf document if I send it in email. There is only empty table. But if I download pdf from site, it works great. Help anyone? (Drupal 7x).

-EKK-

HashKey’s picture

Status: Active » Fixed
abryenton@gmail.com’s picture

Hi,

I am having the exact same issue and upgrading to the dev module gave me errors galore.

Any suggestions? We would really love to utilize this module.

Thanks!

HashKey’s picture

Hello abryenton. Try to use [submission:values:your_field] instead of %value[your_field].
Regards,
HashKey

abryenton@gmail.com’s picture

StatusFileSize
new47.23 KB

Hi,

Thanks for the quick reply!

I have been using that format in the "Content of the PDF document" section.

This is what I have:

-----

This is a test template

[submission:values:first_name]

This is a test.

-----

I've attached the outputted PDF that is sent in the email.

If I put just [submission:values] it will print the labels of the fields in the PDF.

Thanks,
Aaron

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

cgee01’s picture

I have absolutly the same bug like abryenton and EKK..
Is there a patch for this bug?

bendev’s picture

Hello,

[submission:values:first_name] works in download document but not in pdf attached to emails
%value[key] never works

thanks

bendev’s picture

Status: Closed (fixed) » Needs work
bendev’s picture

Status: Needs work » Fixed

sorry my mistake, the issue is solved in the dev version 7.x-4.x-dev for webform7.x-4.2

[submission:values:first_name] works like a charm

Debra G’s picture

NOT WORKING AGAIN (or it's not working in my Drupal 7 environment).

I'm using the most recent dev versions of webform and webform2pdf

This works (prints all fields):
[submission:values]

These don't work (print a blank page):
[submission:values:$key] (in other words: [submission:values:participant_name])
[submission:values:$key:key] ([submission:values:participant_name:key])

Is anyone else having this trouble today?

kyleheney’s picture

I'm having an issue as well. I have created a table in the "Content of the PDF" area. Only the first row of the table is outputted correctly. The rest is blank rows/columns. Very strange.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

avpaderno’s picture

Version: 7.x-3.2 » 7.x-3.x-dev
Issue tags: -%value[key]

I am removing issue tags used from one to four issues. I apologize for bumping the issue.