Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

insert hyperlink based on xmldata

Avatar

Level 4

Hi,

we are using Adobe LC Output to merge form template and xml data into a pdf.

We can merge a datanode with URL like www.adobe.com into a floadingfield and make an interactive link in tghe PDF = works.

But,

We would like to have a text become the hyperlink - like visit >Adobe< and then make Adobe a clickable hyperlink to the site.

I can make a workaround with an invisible filed behind the text with click event to open link, but the must be a better solution!

Look forward hearing your solutions

/Thomas Groenbaek, Denmark

5 Replies

Avatar

Level 7

It's still a workaround, but have you considered using a button made to look like text? You can change the font color to make it look like a hyperlink and place it anywhere you like. The appearance to the user is of hyperlinked text.

Avatar

Level 7

If you're running Designer 9, you could check this post.

http://forums.adobe.com/message/1886949#1886949

In Designer 9 you can simply highlight a word or phrase inside a text field, click Insert, and the 3rd choice from the bottom is Hyperlink. This feature isn't available in Designer 8.1.1, I checked, but I don't know if it's there in Designer 8.2.

Avatar

Level 10

It's in 8.2 but it only works in Acrobat 9+.

Avatar

Level 4

Hi Jono,

I know of the feature - we use LC Designer 9.0. What I need is to be able to make the target for hyperlink dynamic, so I can bind it to a datanode - is that possible at this point?? If I find out it is not, I will file it as a request for change eventually

/Thomas

Avatar

Level 7

You could do this with the button I mentioned earlier. I created a field called url and a button with a script to open a link. Then I used this script:

app.launchURL("http://www." + url.rawValue, true);

so when I type google.com into the url text field and click the button, google.com opens up in my web browser. You could also fire the script using execEvent click on the exit of the text field:

urlButton.execEvent("click");

where urlButton is the name assigned to the button in the hierarchy. Using execEvent you could hide the button so the appearance to the user is simply typing in the url and having a web page open. Would this work for your purposes?