<?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 Expression in a popup. Feature Attribute + URL in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/expression-in-a-popup-feature-attribute-url/m-p/1215977#M48053</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to create an attribute in a popup (map viewer) using an expression that combines an attribute value + URL. I want the user to see the value and be able to click on a link to an external service with more details, if he so desires.&lt;/P&gt;&lt;P&gt;Map viewer conveniently converts all "https://" URLs into "View":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidRasner1_0-1664186506525.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52144iDFCEBF53CC040FED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidRasner1_0-1664186506525.png" alt="DavidRasner1_0-1664186506525.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But not with the concatenate function?&lt;/P&gt;&lt;P&gt;Example: Concatenate($feature["BFS_EGID"]," ","&lt;A href="https://map.geo.admin.ch/" target="_blank"&gt;https://map.geo.admin.ch/&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;Results in:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidRasner1_1-1664186666279.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52145iAFE85CEE917CC8EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidRasner1_1-1664186666279.png" alt="DavidRasner1_1-1664186666279.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want:&lt;/P&gt;&lt;P&gt;1026838 &lt;U&gt;View&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Is that even possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 10:07:30 GMT</pubDate>
    <dc:creator>DavidRasner1</dc:creator>
    <dc:date>2022-09-26T10:07:30Z</dc:date>
    <item>
      <title>Expression in a popup. Feature Attribute + URL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/expression-in-a-popup-feature-attribute-url/m-p/1215977#M48053</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to create an attribute in a popup (map viewer) using an expression that combines an attribute value + URL. I want the user to see the value and be able to click on a link to an external service with more details, if he so desires.&lt;/P&gt;&lt;P&gt;Map viewer conveniently converts all "https://" URLs into "View":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidRasner1_0-1664186506525.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52144iDFCEBF53CC040FED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidRasner1_0-1664186506525.png" alt="DavidRasner1_0-1664186506525.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But not with the concatenate function?&lt;/P&gt;&lt;P&gt;Example: Concatenate($feature["BFS_EGID"]," ","&lt;A href="https://map.geo.admin.ch/" target="_blank"&gt;https://map.geo.admin.ch/&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;Results in:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidRasner1_1-1664186666279.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52145iAFE85CEE917CC8EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidRasner1_1-1664186666279.png" alt="DavidRasner1_1-1664186666279.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want:&lt;/P&gt;&lt;P&gt;1026838 &lt;U&gt;View&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Is that even possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 10:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/expression-in-a-popup-feature-attribute-url/m-p/1215977#M48053</guid>
      <dc:creator>DavidRasner1</dc:creator>
      <dc:date>2022-09-26T10:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in a popup. Feature Attribute + URL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/expression-in-a-popup-feature-attribute-url/m-p/1215993#M48056</link>
      <description>&lt;P&gt;One way i just found is to use HTML in the rich text editor:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm" target="_blank" rel="noopener"&gt;https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I would have to create a feature table from scratch, standards hrefs work fine. HTML in expressions doesn't seem to be possible.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Maybe?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 10:47:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/expression-in-a-popup-feature-attribute-url/m-p/1215993#M48056</guid>
      <dc:creator>DavidRasner1</dc:creator>
      <dc:date>2022-09-26T10:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in a popup. Feature Attribute + URL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/expression-in-a-popup-feature-attribute-url/m-p/1216174#M48064</link>
      <description>&lt;P&gt;As you've found, expression-based URLs will not work when the expression is directly being read as an attribute. However, if you add an &lt;STRONG&gt;Arcade &lt;/STRONG&gt;element to the popup itself, you'll be able to accomplish this, as it interprets HTML tags correctly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1664212882064.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52194iA2C9BBCFEAA2644F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1664212882064.png" alt="jcarlson_0-1664212882064.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var id = $feature["BFS_EGID"]
var url = 'https://map.geo.admin.ch/'

var out_txt = `${id}
&amp;lt;a href="${url}"&amp;gt;View&amp;lt;/a&amp;gt;`

return { 
	type : 'text', 
	text : out_txt
}&lt;/LI-CODE&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="jcarlson_1-1664213211989.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52195i926A649AB8BFB2DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1664213211989.png" alt="jcarlson_1-1664213211989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 17:26:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/expression-in-a-popup-feature-attribute-url/m-p/1216174#M48064</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-09-26T17:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in a popup. Feature Attribute + URL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/expression-in-a-popup-feature-attribute-url/m-p/1216665#M48088</link>
      <description>&lt;P&gt;Nice&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 18:35:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/expression-in-a-popup-feature-attribute-url/m-p/1216665#M48088</guid>
      <dc:creator>AbiodunKaka1</dc:creator>
      <dc:date>2022-09-27T18:35:42Z</dc:date>
    </item>
  </channel>
</rss>

