<?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 Hyperlink to URL Arcade in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/hyperlink-to-url-arcade/m-p/1526702#M61100</link>
    <description>&lt;P&gt;I am trying to use a text element with two attribute expressions. I want the URL field in the pop-up to hyperlink to the URL, but have it display "Click here for more info." I can get it to hyperlink to where I want it to go, but it is showing the full URL, not the alias I am looking for. Currently, this is what it shows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brian_McLeer_0-1724450493731.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113403iAF9783B1599BEFB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brian_McLeer_0-1724450493731.png" alt="Brian_McLeer_0-1724450493731.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1st expression {expression/expr0}&lt;/P&gt;&lt;LI-CODE lang="java"&gt;var annexYear = $feature.ANNEX_YEAR;
var annexDate = $feature.ANNEX_DATE;
var acres = $feature.ACRES;
var name = $feature.ANNEX_NAME;
var annexationDate = Text($feature.AnnexationDate, "MMMM D, YYYY");

return 	"Annex Year: " + annexYear + "\n" +
 		"Annex Date: " + annexDate + "\n" +
		"Acres: " + acres + "\n" +
		"Name: " + name + "\n" +
		"Annexation Date: " + annexationDate + "\n";&lt;/LI-CODE&gt;&lt;P&gt;2nd expression {expression/expr1}&lt;/P&gt;&lt;LI-CODE lang="java"&gt;var link = 'https://server.domain.com/maps/' + UrlEncode($feature.URL);

return link&lt;/LI-CODE&gt;&lt;P&gt;Text element:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;{expression/expr0} URL: {expression/expr1} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2024 22:01:58 GMT</pubDate>
    <dc:creator>Brian_McLeer</dc:creator>
    <dc:date>2024-08-23T22:01:58Z</dc:date>
    <item>
      <title>Hyperlink to URL Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hyperlink-to-url-arcade/m-p/1526702#M61100</link>
      <description>&lt;P&gt;I am trying to use a text element with two attribute expressions. I want the URL field in the pop-up to hyperlink to the URL, but have it display "Click here for more info." I can get it to hyperlink to where I want it to go, but it is showing the full URL, not the alias I am looking for. Currently, this is what it shows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brian_McLeer_0-1724450493731.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113403iAF9783B1599BEFB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brian_McLeer_0-1724450493731.png" alt="Brian_McLeer_0-1724450493731.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1st expression {expression/expr0}&lt;/P&gt;&lt;LI-CODE lang="java"&gt;var annexYear = $feature.ANNEX_YEAR;
var annexDate = $feature.ANNEX_DATE;
var acres = $feature.ACRES;
var name = $feature.ANNEX_NAME;
var annexationDate = Text($feature.AnnexationDate, "MMMM D, YYYY");

return 	"Annex Year: " + annexYear + "\n" +
 		"Annex Date: " + annexDate + "\n" +
		"Acres: " + acres + "\n" +
		"Name: " + name + "\n" +
		"Annexation Date: " + annexationDate + "\n";&lt;/LI-CODE&gt;&lt;P&gt;2nd expression {expression/expr1}&lt;/P&gt;&lt;LI-CODE lang="java"&gt;var link = 'https://server.domain.com/maps/' + UrlEncode($feature.URL);

return link&lt;/LI-CODE&gt;&lt;P&gt;Text element:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;{expression/expr0} URL: {expression/expr1} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 22:01:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hyperlink-to-url-arcade/m-p/1526702#M61100</guid>
      <dc:creator>Brian_McLeer</dc:creator>
      <dc:date>2024-08-23T22:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink to URL Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hyperlink-to-url-arcade/m-p/1526707#M61101</link>
      <description>&lt;P&gt;I think I answered my own question. You can edit the HTML in the text element, but the OK button gets greyed out. You have to exit the HTML mode then click ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brian_McLeer_0-1724450910390.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113405iEB332ED61105A88C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brian_McLeer_0-1724450910390.png" alt="Brian_McLeer_0-1724450910390.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brian_McLeer_1-1724450941054.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113406i3D2CB00F546F73A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brian_McLeer_1-1724450941054.png" alt="Brian_McLeer_1-1724450941054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brian_McLeer_2-1724450951859.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113407iE7A6B6B43489A3A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brian_McLeer_2-1724450951859.png" alt="Brian_McLeer_2-1724450951859.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 22:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hyperlink-to-url-arcade/m-p/1526707#M61101</guid>
      <dc:creator>Brian_McLeer</dc:creator>
      <dc:date>2024-08-23T22:09:18Z</dc:date>
    </item>
  </channel>
</rss>

