cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a hyperlink to adobe forms

Former Member
0 Kudos

Hi,

I´m trying to insert an order number in adobe forms in a static form as a hyperlink to the order. My first step was to insert a static link. The following code works:

var part1 = <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="2.4.5325.0"><p><a href="http://www.google.com">Google</a></p></body>;
var defaultText= part1.toXMLString();
this.value.exData.loadXML(defaultText, false, true);

But when I split the string in 2 strings, to insert the url and the description dynamically, it fails. E.g.:

var part1 = <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="2.4.5325.0"><p><a href="http://www.google.com">;
var part2 = "Google</a></p></body>";
var defaultText= part1.toXMLString() + part2.toXMLString();
this.value.exData.loadXML(defaultText, false, true);

Can anybody tell me what is wrong or give me an example that works.

Regards

Joerg

Accepted Solutions (0)

Answers (0)