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

Is there a way 2 make 2 know 2 acrobat when submitForm has finished?

FranBCN
Registered: May 4 2008
Posts: 19
Answered

i wish to call a ws after the submitform finishes...thanx in advance

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
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.

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

FranBCN
Registered: May 4 2008
Posts: 19
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!
FranBCN
Registered: May 4 2008
Posts: 19
ok i solved it! I use SetJavaScriptAction method when i generate de fdf document of response. thanx