These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

how do I run a trusted function?

JGarn23
Registered: Feb 17 2010
Posts: 35
Answered

If I define a trusted function in a folder level JS script, how do I actually call this from my javascript on a form? e.g. if my trusted function is:
var myFileOpen = app.trustedFunction(
function() {

app.beginPriv();
app.browseForDoc();
app.endPriv();
}
});

How do I access the function from say a button on an XFA form?

Thanks.

JGarn23
Registered: Feb 17 2010
Posts: 35
1) Make sure the syntax is correct !!!
2) just call it directly.

Doh.