Expand my Community achievements bar.

Please Help

Avatar

Former Community Member

I have a pdf form on my website here:

http://www.bestinsuranceofaz.com/uploads/Individual_Medical_questionaire.pdf

the problem is, when somebody fills out the form then clicks the submit by email button at the top of the page, it attaches it as an .xml data form. How do I get it to attach as a pdf?

5 Replies

Avatar

Level 2

Hi,

I believe all you have to do is change the button properties to be 'regular', then add code to the click event so it does something like this:

event.target.submitForm({cURL:addressStr + "&type=PDF",bEmpty:false,cSubmitAs:"PDF",cCharset:"utf-8"});

where the addressStr string contains the specifics for the email, like:
"mailto:me@me.org?subject=Aform"
Hope this helps.
-Veni

Avatar

Level 7

Good morning Rsirrin,

I put a button on your form that submits it as a pdf and used the email address in your original button to send you the updated form. I also included a couple of screenshots to help explain how it was done. If I can be of further assistance please respond to the email I sent you.

Good luck,

djaknow

Avatar

Former Community Member

That's awesome but where is the form you did or the screen shots?

Avatar

Level 7

You didn't receive it? I sent it to you via the email address you had on the email button in your form. I'll re-send it.

Avatar

Level 7

I sent it off again, please let me know if you don't receive it.