Not directly, No. the "submitForm()" function is non-blocking. However, if you know that something in particular will be returned from the submit you can use this to trigger some kind of action.
For example, the calculations are triggered if data is filled in by the submission response, or if the response is FDF it could contain JavaScript that's run after data is merged into the PDF.
I put an app.alert on calculate method of a field that is going to be filled. I return from a servlet an fdf or xfdf and i get the fields filled ok but no popup message appears. How can i know that i received the data from the server? thanx!
For example, the calculations are triggered if data is filled in by the submission response, or if the response is FDF it could contain JavaScript that's run after data is merged into the PDF.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script