I'm having trouble retrieving the filled in pdf form.

so i followed the instructions; downloaded the module and signed up for fillpdf-service and entered the api code at the module's admin page. I uploaded a pdf form successfully with the mapped fields given. I then created a webform using the fields from the pdf as my guide. I used the token values from the webform for the values on the pdf form edit page.

I think my issue is my link to the form, but for the life of me I can not figure where I'm messing up. I attached some screen shots of what I've done and the the screen shot of the error message I get. I've searched the forum and haven't been able to ge an answer for this yet. any thoughts/help would greatly be appreciated.

Comments

goody815’s picture

Component: User interface » Miscellaneous
lefnire’s picture

First try removing $ from your URL:
/fillpdf&fid=807&$webform[nid]=231&webform[sid]=
becomes
/fillpdf&fid=807&webform[nid]=231&webform[sid]=

If that doesn't help, hit me back

(Edit: I see I added the $ in my documentation, which threw you off. Sorry about that, and updated the documentation)

goody815’s picture

thanks,

i'll try it out today and post up the results.

goody815’s picture

StatusFileSize
new114.73 KB

I'm still getting the same error message. maybe i'm just putting the link on the wrong page. Should the link be on the webform page?

i attached a screen shot of the error message and the link is in the address bar.

goody815’s picture

StatusFileSize
new119.8 KB

wrong screen shot in #4. attached is most current error screen shot.

goody815’s picture

StatusFileSize
new158.16 KB

here's an update on where i'm at with this. If I make the link /fillpdf?fid=810&nid=233 i get the pdf form to download, but it has the tokens in the fields (see attached screen pic #1). Can't seem to figure out how to get the submissions to get entered into the form and download. it keeps giving me that error message on line 200 of the module (see last post screen pic attachment). any ideas lefnire?

goody815’s picture

Component: Miscellaneous » User interface
lefnire’s picture

It seems you might have the webform setup with that 'submit' link manually going to the fillpdf URL? If that's the case, then the actual webform-provided submit button is bypassed, and a submission is never created -- so there's no data in the database from which to pull. You'd have to instead remove that link so the user can click the real 'submit' button, then add that link back in somewhere else -- post-submission. If this is not the case, hit me up.

Also, it looks like your fillpdf url has &webform[sid]= -- it's looking for a blank submission number. You can either get that sid manually with php, or if you remove it altogether it will pull the most recent submission from the viewing user. Try /fillpdf&fid=807&webform[nid]=231

If neither of these work, if you shoot me an admin login to your site via email, I can dissect a bit more (sorry about email vs issue-queue madness -- I'm pretty anal about keeping things on the issueu-queue so that other people can benefit, just email for sensitive information).

goody815’s picture

Thanks.

i do have the submit button set up just as submit. I can review all the submissions still. I put the link in the body of the confirmation page. It's currently set up using the php example from the directions. still no luck. i'll email you.

lefnire’s picture

Title: issue with trying to get filled out form » Call to undefined function webform_get_submission()
Version: 6.x-1.11 » 6.x-1.x-dev
Component: User interface » Code
Category: support » bug
Priority: Normal » Critical

Ok, looks like 2 bugs in the module:
1) webform-3.x has a different setup, so webform_get_submission() doesn't work anymore. I'm going to have to code in support for both versions, ugh
2) the webform_tokens.inc file's not populating the PDFs properly, where it did before. Perhaps a token api change since I last visited the file?

These will take a bit of time, I won't be able to address these until tonight.

goody815’s picture

Thanks for looking into this for me.

lefnire’s picture

Ok, I believe I fixed it. Try the latest fillpdf-6.x-1.x-dev (might have to wait a while, Drupal CVS commits take a bit to propagate)

goody815’s picture

Thanks lefnire. I'll upload it tonight and try it out. I'll post up tomorrow AM. Thanks again for your help and insight.

goody815’s picture

Lefnire, I installed the new 6.x-1.x-dev version this morning. it worked like a charm. thank you for all your help...

lefnire’s picture

Status: Active » Fixed

Will roll an official soon. Wanna tack some other features on first

Status: Fixed » Closed (fixed)

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