<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Amending the infoTemplate to include links in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amending-the-infotemplate-to-include-links/m-p/267312#M24697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have an application with 3 feature layers and a select option. When the user clicks on a polygon for example the attributes for the related fields is returned. This is fine for attributes that are text based but I cannot figure out how to show a link within the infoTemplate rather than just the full string. e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; var content = "&amp;lt;b&amp;gt;Classification year&amp;lt;/b&amp;gt;: ${CLASSIFICATION_YEAR}" + "&amp;lt;br/&amp;gt;" +
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;b&amp;gt;Overall classification&amp;lt;/b&amp;gt;: ${OVERALL_CLASSIFICATION}" + "&amp;lt;br/&amp;gt;" +
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;b&amp;gt;Link&amp;lt;/b&amp;gt;: ${CLASS_DS_URL}";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var infoTemplate = new InfoTemplate("${WATER_BODY_NAME}", content);&lt;/PRE&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;The class_ds_url shows the full string but how can I amend the script so it just has a clickable 'Link'??&lt;/P&gt;&lt;P&gt;Help is appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:06:26 GMT</pubDate>
    <dc:creator>OliviaGill1</dc:creator>
    <dc:date>2021-12-11T13:06:26Z</dc:date>
    <item>
      <title>Amending the infoTemplate to include links</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amending-the-infotemplate-to-include-links/m-p/267312#M24697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have an application with 3 feature layers and a select option. When the user clicks on a polygon for example the attributes for the related fields is returned. This is fine for attributes that are text based but I cannot figure out how to show a link within the infoTemplate rather than just the full string. e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; var content = "&amp;lt;b&amp;gt;Classification year&amp;lt;/b&amp;gt;: ${CLASSIFICATION_YEAR}" + "&amp;lt;br/&amp;gt;" +
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;b&amp;gt;Overall classification&amp;lt;/b&amp;gt;: ${OVERALL_CLASSIFICATION}" + "&amp;lt;br/&amp;gt;" +
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;b&amp;gt;Link&amp;lt;/b&amp;gt;: ${CLASS_DS_URL}";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var infoTemplate = new InfoTemplate("${WATER_BODY_NAME}", content);&lt;/PRE&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;The class_ds_url shows the full string but how can I amend the script so it just has a clickable 'Link'??&lt;/P&gt;&lt;P&gt;Help is appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:06:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amending-the-infotemplate-to-include-links/m-p/267312#M24697</guid>
      <dc:creator>OliviaGill1</dc:creator>
      <dc:date>2021-12-11T13:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Amending the infoTemplate to include links</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amending-the-infotemplate-to-include-links/m-p/267313#M24698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can format the hyperlink using HTML.&amp;nbsp; Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var content = "&amp;lt;b&amp;gt;Classification year&amp;lt;/b&amp;gt;: ${CLASSIFICATION_YEAR}" + "&amp;lt;br/&amp;gt;" + 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;b&amp;gt;Overall classification&amp;lt;/b&amp;gt;: ${OVERALL_CLASSIFICATION}" + "&amp;lt;br/&amp;gt;" + 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;b&amp;gt;Link&amp;lt;/b&amp;gt;:&amp;nbsp; &amp;lt;a href=${CLASS_DS_URL}&amp;gt;Link&amp;lt;/a&amp;gt;"; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
var infoTemplate = new InfoTemplate("${WATER_BODY_NAME}", content);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:06:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amending-the-infotemplate-to-include-links/m-p/267313#M24698</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T13:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Amending the infoTemplate to include links</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amending-the-infotemplate-to-include-links/m-p/267314#M24699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you - perfect!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 13:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/amending-the-infotemplate-to-include-links/m-p/267314#M24699</guid>
      <dc:creator>OliviaGill1</dc:creator>
      <dc:date>2016-01-22T13:08:16Z</dc:date>
    </item>
  </channel>
</rss>

