Closed (fixed)
Project:
FillPDF
Version:
7.x-1.7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2012 at 12:46 UTC
Updated:
10 Aug 2012 at 17:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
liam morlandOn the "Edit field mapping for ..." page, is there a Webform section in the Tokens list?
Comment #2
Miao1994 commentedYes, it is. I can fill "value" field by clicking on token.
Comment #3
liam morlandPlease check that you are using the latest releases of Webform, Webform Tokens, and Fill PDF.
Comment #4
Miao1994 commentedThanks for your help, Liam.
All modules are the latest release (7.x-3.18, 7.x-1.1, 7.x-1.5). I confirm that Fill PDF works for all tokens except webform tokens. Drupal Logs don't report any error.
Comment #5
wizonesolutionsTry the development release of Fill PDF (moving to that). Fill PDF is the module that does the replacement; if you see the tokens, then Webform Tokens is working fine.
Can you also post your Fill PDF Link? In the past there have been some issues when passing multiple submission IDs (though those should be fixed).
Comment #6
Miao1994 commentedI saw the last Fill PDF release 7.x-1.6, so first I tried to update my current version 7.x-1.5 using update manager. After updating (database too) module stop working showing the message:
Fatal error: Call to undefined function rules_invoke_event() in ......./drupal/sites/all/modules/fillpdf/fillpdf.module on line 621
Message is showed clicking on the PDF link. Link is set in Webform-->form settings-->custom URL:/fillpdf?fid=470&nid=10&download=1.
Comment #7
wizonesolutionsApply the patch from #1266174-10: Rules integration. Sorry. Let me know if that works (apply it to -dev), along with everything else, and I'll do another release.
Comment #8
wizonesolutionsReleased 7.x-1.7 which also fixes this. Try that.
Comment #9
Miao1994 commented7.x-1.7 fixed the issue, now Fill PDF works fine again, thank you.
Regarding webform tokens , as you suggested, my problem was related to the link used. I switched to PHP:
Where I put the webform content nid (95) without sid to use the latest submission. Now PDF is filled with the correct value corresponding to the last sid submission, but I get the notice:
Undefined index: sid in fillpdf_pdf_link() (line 156 of ......../drupal/sites/all/modules/fillpdf/fillpdf.module).
Is there a way to fix this notice?
Thanks in advance
Comment #10
Miao1994 commentedFinally a HTML link like this: /fillpdf?fid=431&webforms[0][nid]=95&download=1 works for me without any issues. All tokens and webform tokens in Fill PDF are working (I set tokens in field title and custom path).
Thanks for your help.
Comment #11
liam morland