LiveCycle: Link or Button to Open Attachment?

Avatar

Avatar
Boost 1
Level 1
alippman
Level 1

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
alippman
Level 1

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
alippman
Level 1

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

Avatar

Avatar
Validate 1
Level 5
dcidev
Level 5

Likes

30 likes

Total Posts

448 posts

Correct reply

77 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 5
dcidev
Level 5

Likes

30 likes

Total Posts

448 posts

Correct reply

77 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
dcidev
Level 5

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
Boost 1
Level 1
alippman
Level 1

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
alippman
Level 1

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
alippman
Level 1

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