Highlighted

Submit via Email as an attached PDF - not working

Avatar

29-10-2008

Alrighty, I'm in LiveCycle Designer v 8.05.etc



I've created two forms that I would like to have filled out and returned via email as

pdf's
. The 'Email Submit' button only seems to send xml files.



So I made a 'Submit' button instead, and it works just fine in Acrobat 8 professional, but not at all in Acrobat Reader.



What gives?

Is that a limitation of reader or am I missing something?



Thanks in advance,

-Ted

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692
pguerett

29-10-2008

To be able to email a form using one of those submit methods you will need to Reader Extend the form.



Or create a standard button and add this code to the click event:



var oDoc = event.target;

oDoc.mailDoc({

bUI: true,

cTo: "emailaddress@gmail.com",

cCC: "emailaddress@gmail.com",

cSubject: "This is the subject",

cMsg: "This is the body of the message"

});
Highlighted

Avatar

29-10-2008

Thanks for the code, I'll give that a shot.



What does 'Reader Extend' the form mean? I tried looking it up in the help files but didn't see anything...



Thanks!
Highlighted

Avatar

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692
pguerett

29-10-2008

Reader does not have that functionality by default. You can extend your PDF on a PDF by PDF basis to turn on that functionality by Reader Extending the PDF. This is done on the server side and once done that form will always turn on the feature that you want.
Highlighted

Avatar

29-10-2008

Ah the code does not send a filled out pdf, only a bank one. The post above mine explained how to do it. (change the XML to PDF in the xml code, then 'enable usage rights' in acrobat. Worked like a champ.



Seems a little silly that there isn't a simple option for this in LiveCycle...
Highlighted

Avatar

05-03-2009

Livecycle is not liking the code--it asks me to fix it and if I don't, it deletes it. I pasted it in just as Paul listed it. Can anyone think of why it is unhappy?

Thanks.
Highlighted

Avatar

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692
pguerett

05-03-2009

Make sure the button is a regular button and not a submit button. You can only add code to a regular button. In the object palette there is a radiobutton group that allows you to choose the type of button it is.