FillPDF is looking for an integer form_id but with cleanurls on i do not have that. and even writing a module to locate it shows a text formID. any help would be appreciated. Thanks!

Comments

haydeniv’s picture

Can you specify a few more things so that we can better understand your question? Are you using webform module or just a content type?

If content type then the form id would be the node id (nid). You can find that when viewing the node by clicking on the edit tab. The url would then look like http://example.com/node/[nid]/edit. There was a problem on the usage documentation page: http://drupal.org/node/1431638 where it had an ampersand instead of a question mark under "Merging the form data into the PDF" so that may be your problem as well.

So if you wanted to just download a pdf after everthing is set up you should be able to go to http://example.com/fillpdf?fid=[fillpdf_id]&nid=[nid]&download=1

You can get the fillpdf_id number by going to /admin/structure/fillpdf and then clicking on edit of the template you are using and the last number in the URL is your fillpdf_id.

If it is a webform you need to add one more GET variable of webform=[webform_submission_id] to the download link.

Hope that helps.

esancakt’s picture

got it figured out, found the formid i was looking for. however i'm lost on the rules metadata section. my install didnt come with a default rule and i'm not sure what metadata to include to get the pdf to automatically pop up when the user completes the content type form.

wizonesolutions’s picture

You need Webform, Webform Tokens, Webform Rules, and Mime Mail to see the default rule.

Webform Rules changed how they do things a bit so I need to take a look at the rule itself.

wizonesolutions’s picture

Status: Active » Closed (works as designed)

Reopen if anything else.