I have a form with a button's click even I run
When I test this in preview it works.
When I test by opening the pdf pre distribution it works.
when I distribute the form and open it with Acrobat pro test the button I get:
NotAllowedError: Security settings prevent access to this property or method.