One of our clients has his users fill the LC Designer PDFs on their web site. They request that the users get a “Do you really want to exit?” warning, if they navigate away from the form, after having made changes to it. I was able to simulate the AcroScript “Dirty” state by comparing the xfa.data.saveXML with the original document content. My problem is that I can’t seem to be able to issue the warning in time for the user to do something about it. I tried to use the DocClose event, but (as described in the documentation) there is no way for the user to go back to the document.