A POST can fail to achieve the desired communication through no fault of the form, its js code or the Adobe Reader in which the form is being hosted. For instance a simple communication break or lots of noise will cause such a failure. Adobe Reader certainly detects the occurrence of an unsatisfactory response to the POST, as it advises the user via a simple 'alert' dialog.
The function 'submitForm' returns 'true', regardless of the condition of the communication. ( I have never seen this stated, but my testing indicates that the return of 'true' is not affected by any communication failure.)
I need the code behind the form to be advised of a POST communication failure, so that it can make a particular adjustment to the form. Presumably this would be achievable by use of an event listener, but I cannot find any information on a hookable event in Adobe Reader that is related to such a failure. Does anyone have any ideas?
That is not possible. However, I believe you can return (from your
web-server) an FDF file, which is then displayed in the application. So you
could add an alert before the submitForm that says that the file is only
successfully received if you see a web that say "Thank you for submitting
the file.". If the process fails, the user won't see that page, and if it
works it will show an FDF with that message that it got from your server.
On Wed, Jul 2, 2014 at 8:06 AM, DavetheBari <firstname.lastname@example.org>
Thank you for your response, even though is not what I wanted to hear!!!!