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

Submit Function Returning PDF not XML

Mr.Jiggs
Registered: Apr 11 2006
Posts: 39
Answered

I'm trying to make a form that will submit the XML data file only upon submission, but everything I've tried sends the entire .PDF.

I've tried the 'canned' EMail submit button and the 'plain' button set to submit where I've tried all the options, but I keep getting a .PDF. I'm sure I'm missing something simple, but my forehead is starting to hurt from slamming it against this wall.

Any clues as to where should I look ?

Mr. Jiggs

Mr. Jiggs

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If you use the "Distribute Form" functionality in Acrobat 8, it modifies the submit button to return the entire PDF. There are also some actions in LiveCycle that will cause this to happen.

If you have set the button to submit XML and it's still not working. You could try JavaScript.

This script will work on a button click event.

event.target.submitForm({cURL:"mailto:me [at] them [dot] com",submitAs:"XML"});

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script