I have a fillable PDF form whose Submit button calls this JavaScript:
this.mailForm(true);
When I open this form in Acrobat X Pro and hit the submit button, a mail dialog box comes up as I would expect.
When I open this form in Acrobat Reader X and hit the submit button, I get the error:
Not allowed error. Security settings prevent access to this property or method.
Why the difference? Note that I will have this form on my website, so I cannot expect my visitors to change their Reader setting. How can I fix it?
I have been pouring over the documentation for mailForm. Everything I read tells me that this.mailForm(true); is legal and does not require special privileges.
Note also that in Reader X, I selected Edit - Preferences - JavaScript and made sure that the following boxes were checked:
Enable Acrobat JavaScript
Enable menu items JavaScript execution privileges.
If the form works in Acrobat, it should work in Reader where I really need it. Can anyone help?
Thanks for replying. The page you mentioned says:
Beginning with Acrobat 7.0, execution of JavaScript through a menu event is no longer privileged. You can execute security-restricted methods through menu events in one of the following ways:
●By opening the JavaScript category of the Acrobat preferences and checking the item named “Enable Menu Items JavaScript Execution Privileges”.
I did check that item (as I mentioned above). So why can't I execute it? At any rate, the mailForm documentation says that if the first parameter is TRUE, it operates in a non-privileged state. I have been using TRUE for this question.
So someone please tell me, why won't this.mailForm(true); work in Adobe X Reader while it works if I open it in Acrobat itself?
The error message is simply misleading, and I don't know why it has been made so. It has nothing to do with security settings; it is simply that the form does not have the according rights.
The "security" error message does, of course make one believe that it is a question of privilege… whidh is misleading.
HTH
Max Wyss.
Thanks for your response. In order to give my form what I believe to be the "according rights," I opened my form in Acrobat X Pro.
I then did Save As - Reader Extended PDF - Enable Additional Features.
After saving the form, the fields could be edited in Reader. However it behaved the same way with this.mailForm(true) attached to the submit button.
I got the error: "Not allowed error. Security settings prevent access to this property or method." Why?
Note that for what it's worth, I had also earlier gone to the Acrobat X Pro menu item "Manage Trusted Identities" and selected Certicates - Edit Trust and checked all the boxes including "Embedded High Privilege JavaScript" and "Privileged System Operations."
North America
Europe, Middle East and Africa
Asia Pacific