Expand my Community achievements bar.

PDF Attachment Annotation script in LiveCycle

Avatar

Level 3

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;

1 Reply

Avatar

Level 10

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;