Highlighted

LiveCycle: Link or Button to Open Attachment?

Avatar

Avatar

alippman

Avatar

alippman

alippman

21-01-2015

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

Replies

Highlighted

Avatar

Avatar

dcidev

Avatar

dcidev

dcidev

21-01-2015

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

Avatar

Avatar

alippman

Avatar

alippman

alippman

21-01-2015

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