Highlighted

Preventing prompt to save when nothing has changed

yodadobe

17-12-2008

I have a form that if you just open it then close, it will prompt to save. I figure it has to do with some code in either an initialize of Form Ready event. Any advice on figuring out which one? Preferably other than process of elimination.



The JavaScript scripting reference lists a dirty flag that can be set to false. Wherever I do app.alert(this.dirty), I get undefined.

Replies

Highlighted

pguerett

17-12-2008

The this in Acrobat refers to the current doc object. You cannot use it like that in XFA forms. You can use event.target to get at the same object through XFA. If you click on the root node in the hierarchy and choose the Initialize event, then click on the + icon beside the events dropdown. This will show you all of the code on all child events. You can at least see if any initialization routines are changing data.