Avatar

Level 10

Hi,

For something like this I would use docReady. It is a great event. It is one of the last to fire as the form renders and only fires once.

I would expect your script to work. Maybe drop the .access line, as the button is already hidden.

Also check the object references. There doesn't appear to be any reference to a "page".

Lastly, when Previewing or open in Acrobat use the JavaScript Console (Control+J) to see if there are any errors, as the form loads:

Javascript Console.png

Niall