These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Hyperlink that opens a new browser window

urlgurl
Registered: Jul 28 2010
Posts: 15

The scenario:

A web page has a link that opens a PDF form, created with LiveCycle.
In that form, there is a text object. The text object includes a few lines of text. Within that text, there is a hyperlink associated with a few words. The desired behavior is that, when the user clicks the hyperlink, a NEW browser window (or tab) opens with the target URL.

How can I get that to work?

I know I could use a button with app.launchURL("url"), but I need to have the hyperlink be associated with inline text, not a button. If I merely associate a hyperlink with the inline text, the target URL appears in the SAME window as the form. This is not good because if the user clicks the Back button to return to the form, any data they entered has disappeared.

I am looking for the equivalent of the target="_blank" attribute in an HTML anchor tag.

My Product Information:
LiveCycle Designer, Windows
Michael Frommer
Registered: Apr 3 2009
Posts: 80
The experts here might be able to give you a better way to do this, but this works for me:

Change the font color of and underline the 'hyperlink' text within the text object. This will give it the appearance of being an actual hyperlink.

Create a regular button with
* No Caption
* Apperance: Custom with (Custom) Backround Fill set to None
* Highlighting set to None
* Presense set to Visible (screen Only)

Rename the button with name of URL (since it will appear when the cursor hovers over it)

On the button's click event use "app.launchURL();"

Resize the button (You may need to uncheck View / Snap to Grid) and move it over the 'hyperlink' text in the text object.

Some may consider this the ghetto approach but it was the only way I could think of to accomplish the same thing you're after. Hope it helps.
urlgurl
Registered: Jul 28 2010
Posts: 15
Thanks for posting this answer. I hope that a LiveCycle product manager is reading this thread because the suggested workaround should not be necessary. Please make it easier to create a hyperlink that opens a new browser window or tab; it seems like such a basic thing... and it appears to be missing from the product.
Michael Frommer
Registered: Apr 3 2009
Posts: 80
This is a separate user community and not the official Adobe forum.