Avatar

Correct answer by
Level 10

Hi Stephen,

I have come across this before and thought I had a "proper" answer, but I can't find it. I think that when reader enabling rights are applied by Acrobat the the form does a check as part of the opening process. There appears to be a bunch of events that fire twice when the form is reader enabled (in Acrobat - I can't test if the form is enabled in LC RE ES2).

Here is an example showing how, when and in what order, events fire.  The form is at the end of the post (at http://cookbooks.adobe.com/post_How_often_events_fire_and_their_sequence-16547.html). There are 13 objects in the form, whose events are tracked.

When the form is not enabled the start up looks like this (certain events firing once as expected):

Events 03.png

When I apply the reader enabling rights through Acrobat, the firing of events doubles for:

  • initialise;
  • form:ready;
  • layout:ready
  • IndexChange;
  • docReady.

Events 04.png

One indicator of what is potentially happening is that in the RE version the preSave event fires (but not postSave event).

Not the full answer - just an indication.

Good luck,

Niall

View solution in original post