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

LiveCycle: Link or Button to Open Attachment?

alippman
Level 2
Level 2

Hello!

I have been researching this for a few days now, and still have not found a viable solution.

I need to attach a PDF of "Help Tips" to a form I created in LiveCycle. Then, I want to add a button or link for the user to click that will open the "Help Tips" attachment.

I have done this many times in Acrobat Pro, and while I can still add an attachment in Acrobat, I can no longer add a button to open it because the form has been created in LiveCycle.

Someone had asked a similar question here, https://forums.adobe.com/thread/1235441 but I still have not been able to find a working solution to this.

Any advice would be greatly appreciated!

Best Regards,

Ash

2 Replies
dcidev
Level 8
Level 8

As per what Bruce said in that thread, use the following in the click event of your button:

event.target.exportDataObject({ cName: "Tips.pdf", nLaunch: 2 });


where "Tips.pdf" is the file name of your PDF attachment.


Kyle

alippman
Level 2
Level 2

Thanks for your response!  I guess I just needed a bit of clarification on Bruce's script!

(For others in case they find this thread:)

- In LiveCycle, add script to the click event of the button:

event.target.exportDataObject({ cName: "Tips.pdf", nLaunch: 2 });

- Open document in Acrobat Pro and attach "Tips.pdf".

Awesome, thanks for clearing that up for me!! It works like a charm!!

Ash