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

HTTP not getting info

RoseofGold
Registered: Mar 10 2008
Posts: 4

I have a dealer application that I want to be filled out online. I have no problems filling it out and the info getting to my database. However, there seems to be an influx of our customers that are not getting the info passed. Actually the 'data' comes through as blank or null. The fields are set up to be required and are checked before the PDF is submitted.

Any ideas?

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What is the data format that is being submitted? Are you sure the data is actually blank? Could the server side parsing be having a problem?

You could test this by haveing a customer that has this problem submit at a time when you are running your server script in debug mode, so you can see exactly what's coming in. You could also setup the server script to write the HTTP request body directly to a file, so you can check the exact contents without needing to be in debug mode.

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

RoseofGold
Registered: Mar 10 2008
Posts: 4
the problem is we don't know who the potential customer is. (should have read as 'new' instead of 'our'. I run it on my system and it works just fine. My boss (who only has reader) fills it out and it submits just fine as well.

I use the HTTP requests in a php page to pull the info needed. Before anyone can hit the button that goes to that page they must print out the pdf.

In order to print, it goes through to make sure the required fields are there. Once the print button is pressed is when the http request button appears.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This is a tough one. You need more information.

So there is an action, Printing the form, before the actual submit? Is is possible that anything here could be clearing the data?

Here are some other things to look at:

1. Have you tested on older versions of Acrobat and Reader? i.e. could you be using functionality that is not implemented on older versions?

2. Is this a LiveCycle form? This could definately have problems on older versions.

3. How is the submit implemented, in JavaScript, or using the built-in submit? Again, the JavaScript submitForm could have version dependancy problems depending on the features used.

4. What is the data format used in the submit? This could also have version dependancy problems.

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

RoseofGold
Registered: Mar 10 2008
Posts: 4
There is a print button. Once page is printed there is an HTTP submit button that goes to a php page that extracts the info needed. It is a LiveCycle form so I will check out older versions again to see if I can find the problem.

Is there a way to prevent the form from opening if they do not have a certain version of Reader or Acrobat?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, and no. You can use a simple piece of code in a document script to detect the version and give the user an alert, you can't reliably close the document. So it's better to stick with just the alert box.

if(app.viewerVersion < 7)
app.alert("You must have Acrobat/Reader 7.0 or later to use this Form");

You can use a similar methodology to block printing and submit.

Of course, this technique only works if JavaScript is turned on.

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