Highlighted

Opening a new pdf file using JavaScript in LiveCycle

mistersing

15-08-2008

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.

Replies

Highlighted

Avatar

Guest

17-08-2008

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
Highlighted

Avatar

Guest

18-08-2008

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.
Highlighted

mistersing

18-08-2008

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.
Highlighted

Avatar

Guest

19-08-2008

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