Avatar

Not applicable

Hi Bruce,

A few years ago (2013), you posted a possible solution to the problem of providing a link for users to attach files to a PDF created in LiveCycle Designer. Now in 2018, this still seems to be a problem and you were the only person who seemed to offer a solution. I copied your script and placed it in the Script Editor as follows:

if (event.target.importDataObject("MyAttachedFile"))
{
    var attachmentObject = event.target.getDataObject("MyAttachedFile");
    console.println("Attachment path="+attachmentObject.path);
}
event.target.exportDataObject({ cName: "MyAttachedFile", nLaunch: 2 });

However, it seems to work only if someone's using Adobe Acrobat but it doesn't work with Adobe Reader which most users have.

I'm wondering if there's something I'm missing (I'm a novice user of JavaScript and LiveCycle Designer) or if there's something I need to modify in the script.

Thanks very much.

MJ