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