Expand my Community achievements bar.

Opening a new pdf file using JavaScript in LiveCycle

Avatar

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

Avatar

Former Community Member
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

Avatar

Former Community Member
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.

Avatar

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.

Avatar

Former Community Member
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