Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Way to visually alert a user that a PDF has an attachment

Avatar

Level 2

When a PDF document has an attached file, is there a quick and easy way (script perhaps) to detect that and alert the users to that fact ?

Again those darn users 

1 Reply

Avatar

Level 2

Try this to work with it:

var oAttachment = event.target.dataObjects;

if(oAttachment == null){

     xfa.host.messageBox("number of attached files: 0");

}else{

     xfa.host.messageBox("number of attached files: " + oAttachment.length);

}