NotAllowedError Security settings prevent access to this property or method
- October 6, 2023
- 2 replies
- 10453 views
PLEASE HELP!!!!
So, I have this State form that is distributed as an XFA document (original document and my version attached). As I understand, XFA format has always been a headache to developers. So here's where I am, I've recreated the document using Print to Abode PDF. Finally, I've added a button to run some javascript (pasted below).
I've tried everything I've come across in searched articles, but repeatedly get the message - NotAllowedError: Security settings prevent access to this property or method. I've checked the Document Security Properties and all say 'Allowed'. Oh, almost forgot to mention, I CAN manually perform insert pages from a file going through the menu. I'm open for any/all suggestions.
Thanks a million in advance.
app.trustedFunction(function () {
app.beginPriv();
this.insertPages ({
nPage: -1,
cPath: "/c/temp/AdditionalMember.pdf",
nStart: 4
});
app.endPriv();
});
app.alert("Additional Member Page Added!");
