These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to force distributed form to send data as XML instead of PDF?

curts
Registered: Jul 5 2011
Posts: 2

Folks,
  
The undistributed form sends XML, but the distributed form sends the whole PDF. I have set up an email button on the form to send me the data as XML. The XML source viewed in LiveCycle correctly reflects this:
 
\
\
\
 
When I fill out the form *prior to* distribution, it sends an XML file to this address. However, the distributed PDF emails the whole PDF, and sends it to a default email address (set in Acrobat Pro Edit menu -> Preferences -> Identity).
 
Additionally, the response tracking is always turned on whether or not I deselect that option. It seems Adobe Pro is fiddling with the instructions set in LiveCycle.
 
Thank you,
cur
-- Using LiveCycle 8.2.1 & Acrobat Pro v 9.4.4 on Windows XP

My Product Information:
Acrobat Pro 9.4.3, Windows
curts
Registered: Jul 5 2011
Posts: 2
Gads. There's a javascript solution shown in acrobatusers.com/forum/forms-livecycle-designer/submit-email-button-pdf-instead-xml .

var subject1 = "This is your Subject line";
var address1 = "email [dot] address [at] sendto [dot] com";
var body1 = "\nHello%2C\n\n This is your body of the email message";

event.target.submitForm({cURL:"mailto:" + address1 +"?subject=" + subject1 +"&body=" + body1 + "",cSubmitAs:"PDF",cCharset:"utf-8"});