I have forms that use the "this" doc reference a lot (e.g., this.getField). These forms use the "this" reference when performing an auto-save function to save the file in its current folder (overwriting the existing file). The problem is that the "this" reference does not always reference the current, active document. So if there is another PDF file open (even if it's not a form), it will sometimes save the form into that file's folder. Even though the other document is not the active document, this still happens. Sometimes this happens if I have accessed a separate file while the form is open, even though I've closed that separate file prior to the auto-save function operating. It's as though the cache for the "this" reference hasn't cleared.
Any experience with this? Any help?