Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

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);

}