Skip to main content
JR Boulay
Community Expert
Community Expert
August 5, 2017
Answered

submitForm outside of a browser

  • August 5, 2017
  • 6 replies
  • 2182 views

Hi.

I'm trying to submit a form using this script :

this.submitForm({

cURL: "http://blablabla.com/forms_pdf/submit.php#FDF",

cSubmitAs: "XFDF"

});

I also tried to use the built in Acrobat's feature using the same URL.

When I clic on the submit button, Acrobat Reader send an alert box saying that the form must be submitted from a web browser. And nothing else happen.

I tried with Firefox : nothing happens, it cannot see form fields and it ask the user to open the PDF in an another application.

I tried with Chrome : form fields are usable by nothing happens when I clic the submit button.

How can I submit a form from a web browser?

How can I submit a form from Acrobat Reader?

(I wrote "submit", not "sending by email")

This topic has been closed for replies.
Correct answer Test Screen Name

Submit to a web server. From iE or Reader. It should work in Reader. Make sure the URL has http in lower case.

6 replies

Legend
August 9, 2017

Actobat is saying: Here is an action with a protocol ZI do not recognise. I assume it is valid, so the form needs to be submitted by diftesre which understands the protocol, like a web browser. The fact that it isn't valid isnt knowable in general.

JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
August 9, 2017

Yes, but Acrobat's error message should more obvious and more clear!

Acrobate du PDF, InDesigner et Photoshopographe
JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
August 8, 2017

Thank you again and

I made some tests: submitForm works fine from Acrobat Reader when using http or https but not with sftp

This is the issue.

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
August 8, 2017

That's to be expected. sftp is a completely different kind of protocol, and requires a higher level of security to use (such as logging in using a username and a password) than http or even https.

JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
August 7, 2017

OK.

Thank you.

Acrobate du PDF, InDesigner et Photoshopographe
Test Screen NameCorrect answer
Legend
August 6, 2017

Submit to a web server. From iE or Reader. It should work in Reader. Make sure the URL has http in lower case.

JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
August 7, 2017

My client's URL starts by "sftp://xxxxxxx"

(Don't ask me why…)

Could this be an issue?

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
August 7, 2017

That means it's on a secure FTP site. You can't just connect to it using a simple URL request. It requires a more complex procedure (read about SSH to see how it's done). I don't think you can submit a PDF to such a site.

Legend
August 6, 2017

IE is the only Windows browser still working with Reader.

JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
August 6, 2017

OK.

But how can I submit a form without sending it by email?

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
August 6, 2017

On your server you need you have a web-service running (written in PHP, for example) that will collect the data and then save it as a local file. If that's not working you need to complain to the developers of the PDF plugins you're using. It works just fine with Adobe applications, either from within a browser or not.