web link in InfoTemplate

716
3
Jump to solution
06-20-2014 07:31 AM
jaykapalczynski
Frequent Contributor
I have my template set up like such.
The URL field returns this   http://www.removedURL.gov/wmas/detail.asp?pid=28

How can I make this a Werb Link that will open a new Window

var DGIFWMAs = new InfoTemplate("",      "<table style='width:100%'><tr><td style='text-align:center; font-size:20px; '>DGIF WMAs</td></table>" +      "<table style='width:100%'><tr><td style='width:30%'><b>URL</b> </td><td style='width:70%'>${URL}</td></tr></table>"  );
0 Kudos
1 Solution

Accepted Solutions
jaykapalczynski
Frequent Contributor
got it...replaced  " " with  '  '

<a href='${URL}' target='_blank'>Visit</a>

View solution in original post

0 Kudos
3 Replies
jaykapalczynski
Frequent Contributor
Tried this but not good...darn syntax

"<table style='width:100%'><tr><td style='width:30%'><b>URL</b></td><td style='width:70%'><a href="'${URL}'" target="_blank">Visit</a></td></tr></table>" +
0 Kudos
jaykapalczynski
Frequent Contributor
Sorry for wasting yoru time go tit with this..

BUT the target="_blank" is not working....

Does not work
"<table style='width:100%'><tr><td style='width:30%'><b>URL</b></td><td style='width:70%'><a href='${URL}' target="_blank">Visit</a></td></tr></table>" +

Works
"<table style='width:100%'><tr><td style='width:30%'><b>URL</b></td><td style='width:70%'><a href='${URL}' >Visit</a></td></tr></table>" +
0 Kudos
jaykapalczynski
Frequent Contributor
got it...replaced  " " with  '  '

<a href='${URL}' target='_blank'>Visit</a>
0 Kudos