I am using Acrobat Professional 8.1.0 and LiveCycle Designer 8. I have created an online form which users will access via our web site, fill in their information, then click a submit button which will email the XML data to our email address. However, we need the user to click a link or button or image (any of these would be fine) which will open a separate PDF file of a user agreement in a separate window, which they will read, then go back to the original form to acknowledge that they have read the agreement. Currently, I have it set up using the button tool, with a java script linking to the PDF agreement (for example: on click it points to: xfa.host.gotoURL("rules.pdf"). The button works and it does open the pag we want, however, our issue is that the user agreement opens in the same browswer window as the form, so after you have read the agreement and hit the back button to go back to your online form, all of your information you have filled out so far (5 pages worth in our case) is erased!! Is there any way to set it to link to a PDF file or web page which will open in a separate browser window so that no data is lost on the other form? This is urgent and any info you have is appreciated.
Thank you!
Jenn
Solutions range from things you can do with Acrobat settings to HTML scripting and contructions.
First you should take a look at what settings are availible in Acrobat. Several are settable from a document script. Keep in mind though that several of the settings are not applicable when a PDF is shown in an exteral viever like the browser.
Next take a look at ways you can get HTML to force a new window. For example, linking to a page that automatically redirects to a new window.
One of the problems you'll find is that few solutions will work universally with all browsers and Acrobat versions.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script