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

Referencd PDF Attachment

Not applicable
Hi,



I have a PDF generated in LiveCycle form, which may or may not contain an attached PDF file.



Our problem is that our end users are not that literate and we need to make it blindingly obvious when one of these forms contains attachments.



When the form is opened, I would like to include some scripting to reference whether on not there is an attachment in the document and show/hide a subform which contacts an explanation for the users that there is an attachment and that they need to click the paper clip icon to access this.



Alternatively I would like to be able to force Reader to open with the Attachment window visible but I don't know if this is possible either.



Thanks



James
6 Replies
Mark_Lindberg
Level 5
Level 5
James:

Give this a look:

http://www.adobeforums.com/webx/.3c062847/0



It can be the basis for identifying if there are attachments. If so you can use app.alert("... ") to tell the user to look for them.



Good Luck

Mark
Not applicable
Thanks Mark,



This looks like it will do the trick. My on;y question would be how could this be tested in Designer? How do I get an attachment stored against the XDP to verify the code (N.B As I am only doing a small check, I will test the code by running the process against this form for the moment) but if I wanted to do more complex logic against PDF attachments, how would I do this/



Thanks



James
Mark_Lindberg
Level 5
Level 5
James:

I guess I am not sure.

Perhaps someone else will join in here.

Sorry.

Mark
pguerett
Level 10
Level 10
Post your email address and I will send you a sample that shows how to deal with attatchments.
Not applicable
Paul,



I am interested in seeing your samples dealing with attachments. Could you please send them to me? Here is my email: dnollatut(at)yahoo.com



Thanks for your help,



Daniel