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

Forms Submit HTTP

tranric
Registered: Dec 12 2007
Posts: 6

Hi
I have a form with a text and an image field.
 
After entering a value in the text field and selecting a new GIF file in the image field, I do a Submit HTTP (as UTF-8 XML) format to a specific URL.
 
Why does the submitted url NOT contain the correct GIF image I selected ?

My Product Information:
Acrobat Pro 7.0.9, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Submit as XDP format. The generic XML format has no way to represent an image.

Either way image data is too large to use the HTTP Get Format (the one that uses URL parameters to transfer data), so don't use it.

If you want to submit the image URL instead of the actual image data you'll have to do some custom scripting.

1. search the image field to extract this info
2. copy the URL to a text field
3. Submit using the HTML format
4. Do not use the LiveCycle Submit, instead use the AcroForms "submitForm()" function.

Ex in LiveCycle JavaScript:

event.target.submitForm({cURL:..., cSubmitAs:HTML});

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