PDF Attachment Annotation script in LiveCycle

pinechick

24-06-2015

Help Please.
Can someone help to re-write this code below to work in LiveCycle?
It already works for Acrobat and users with Acrobat Reader XI can attach files to PDF with this script but it doesn't work when the form is created with LiveCycle. Please help.

var annot=this.addAnnot
({
page:0,
type:"FileAttachment",
attachIcon:"Paperclip",
point:[41,771]
})
annot.cAttachmentPath;

Accepted Solutions (0)

Answers (1)

Answers (1)

radzmar

MVP

24-06-2015

Hi,

this won't work in dynamic forms at all.

The annot won't be saved with the file I'm afraid.


var annot=event.target.addAnnot ({


page:0,


type:"FileAttachment",


attachIcon:"Paperclip",


point:[41,771]


})


annot.cAttachmentPath;