My Adobe Acrobat documents have a field in which the current date is displayed when opened.
The documents are having password security on them, allowing printing and change of forms only (need to allow change of form, otherwise the updating of the current date would not work).
Everything works quite well, but I am unable to suppress the automatic alert "Do you want to save the changes... " when closing the document with Adobe Professional (with the reader it works). I tried to generate a Document even Code (Doc/WillClose), see below, but the code IS NOT SUPPRESSING THE AUTOMATIC ALERT....
Can anyone please help?
For the updating the current date in the field:
var f = this.getField("Today");
var d = new Date();
f.value = "Dokument gültig am " + util.printd("ddmmmyyyy", d);
Code in the Doc/WillClose