Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

}