I have a text field that updates another text field. If the user enters data in the first text field, then selects print from the menu, the document will print without the second text field being updated.
If the user presses enter or selects another field all is OK. I was wondering if there is way of either forcing the commit if focus is lost on the first field, or forcing all commits if a menu item like print is selected.
Thanks for your help.
Which event are you using? You could try to force the issue with a WillPrint script that forces the focus to some neutral field on the form, like a button.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script