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

Opening a new pdf file using JavaScript in LiveCycle

mistersing
Level 2
Level 2
I want to set up a checkbox using the "click" event so that when it is clicked, a completely separate and specific pdf file will open (I would like the file to simply open without having to "fish" for it in a dialog box). Is there a way to do this?



thanks.
4 Replies
Not applicable
Hi Brian,

I could not catch which dialog box you mean, but you can open an http link of PDF by script:

xfa.host.gotoURL("http://www.adobe.com/epaper/spotlights/acrfaa/pdfs/acrfaa.pdf" , 1);



Second parameter opens the file in new window.



Asiye
Not applicable
This message is for John Cornicello: I apologize, but I wasn't sure where else to post this message. Why is there no Livecycle ES Forms Forum? I have several questions regarding this adobe Livecycle component, and I am not quite sure where to post these questions.



Thanks in advance for your help. Again, sorry to everyone else about the misplaced post.

Regards, J.P.
mistersing
Level 2
Level 2
Hi - sorry I wasn't more specific. I would like to open a specific PDF file in Reader without having to fish through the "open" file dialog box for the file in question. I would simply like to click on a check box within one form and automatically have another one open in Reader.
Not applicable
Brian,

In the change event of the checkbox you can execute the given script for your PDF file.

There is not needed any open file dialogbox.

I hope I understood u.

Asiye