Expand my Community achievements bar.

SOLVED

First or Initial Function

Avatar

Level 3

I saw this somewhere...but the brain is drying up!

When you create a form with LCD and someone opens that form with the Acrobat Reader, a function is automatically executed. What is the name of that function and how do I get access to it?

Conversely, is there a function that run when the user closes a file.

I'm trying to set a few variable values when the form opens and closes.

Thank you for the feedback....

1 Accepted Solution

Avatar

Correct answer by
Level 4

I am not 100% sure if I am right, but do you reder to the "events" that can contain functions on initialize post... and closedoc.

In these events people might add scripts that will execute when opening etc. the document. (Like you said with your variables.)

(Other events are exit, calculate, mouseup, mousedown etc. The events can be found on the upper left of the "scripting-field".)

View solution in original post

2 Replies

Avatar

Correct answer by
Level 4

I am not 100% sure if I am right, but do you reder to the "events" that can contain functions on initialize post... and closedoc.

In these events people might add scripts that will execute when opening etc. the document. (Like you said with your variables.)

(Other events are exit, calculate, mouseup, mousedown etc. The events can be found on the upper left of the "scripting-field".)

Avatar

Level 3

Thank you Ocen12...you reply reminded me where these events are located.

The DocReady event is what I was looking for. It's the first event that is executed.

Thank you.