<?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 Re: Arcade Popups with multiple web links in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-popups-with-multiple-web-links/m-p/1210773#M47789</link>
    <description>&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;Thank you so very much! I love seeing this work. I really want to dive deeper into Arcade and now I can learn more about Arcade elements. It all makes sense now because I had been seeing other examples of people using Html code in their Arcade code. Now I can finish up this little project and on to my next project. I hope you have a fantastic day. You have definitely made a new friend for life.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 14:53:28 GMT</pubDate>
    <dc:creator>John_Shell</dc:creator>
    <dc:date>2022-09-08T14:53:28Z</dc:date>
    <item>
      <title>Arcade Popups with multiple web links</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-popups-with-multiple-web-links/m-p/1207813#M47626</link>
      <description>&lt;P&gt;I need to be able to show data with a one to many relationship. I have the data coming out correctly but the links are merging together into one web link. I need the links to be individual links.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 17:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-popups-with-multiple-web-links/m-p/1207813#M47626</guid>
      <dc:creator>John_Shell</dc:creator>
      <dc:date>2022-08-30T17:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Popups with multiple web links</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-popups-with-multiple-web-links/m-p/1210660#M47784</link>
      <description>&lt;P&gt;This is the map we're talking about:&amp;nbsp;&lt;A href="https://tacoma.maps.arcgis.com/apps/mapviewer/index.html?webmap=c80eda9c8e434844a8ddbe742fc11a9c" target="_blank"&gt;Tacoma City Council Districts Web Map Update-Copy (arcgis.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The old and hard way:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;figure out how many links you need at max&lt;UL&gt;&lt;LI&gt;let's say the biggest district has 5 neighbothood counlics, then you need 5 links.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;create the expressions:&lt;UL&gt;&lt;LI&gt;for each council: 1 expression for the name, 1 for the url&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;create the popup&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Expression for the name
index = 0  // &amp;lt;- change this number in each name expression

var areas =FeatureSetByName($map,"Neighborhood Council Districts (Tacoma)");
var Onefifty = Buffer($Feature, -150, 'feet')
var countp = Intersects(areas,Onefifty);

var i = 0
for(var c in countp) {
    if(i == index) {
        return c.Neighborhood
    }
    i++
}
return ''&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;// Expression for the url
index = 0  // &amp;lt;- change this number in each name expression

var areas =FeatureSetByName($map,"Neighborhood Council Districts (Tacoma)");
var Onefifty = Buffer($Feature, -150, 'feet')
var countp = Intersects(areas,Onefifty);

var i = 0
for(var c in countp) {
    if(i == index) {
        return c.URL
    }
    i++
}
return ''&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your popup would look like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1662619015863.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50700i5EDF2B72210F1519/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1662619015863.png" alt="JohannesLindner_0-1662619015863.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new and far better way: Just use an Arcade element! With this element, you can return HTML code which will be interpreted by the popup.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1662619126139.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50701iE86B54BB130E19B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_1-1662619126139.png" alt="JohannesLindner_1-1662619126139.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var areas =FeatureSetByName($map,"Neighborhood Council Districts (Tacoma)");
var Onefifty = Buffer($Feature, -150, 'feet')
var countp = Intersects(areas,Onefifty);

var result = "";
for (var item in countp){
    var name = item["Neighborhood"];
    var url = item["URL"]
    result += `&amp;lt;a href="${url}" target="_blank"&amp;gt;${name}&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;`
}

return { 
	type : 'text', 
	text : result
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 06:40:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-popups-with-multiple-web-links/m-p/1210660#M47784</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-09-08T06:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Popups with multiple web links</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-popups-with-multiple-web-links/m-p/1210773#M47789</link>
      <description>&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;Thank you so very much! I love seeing this work. I really want to dive deeper into Arcade and now I can learn more about Arcade elements. It all makes sense now because I had been seeing other examples of people using Html code in their Arcade code. Now I can finish up this little project and on to my next project. I hope you have a fantastic day. You have definitely made a new friend for life.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 14:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-popups-with-multiple-web-links/m-p/1210773#M47789</guid>
      <dc:creator>John_Shell</dc:creator>
      <dc:date>2022-09-08T14:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Popups with multiple web links</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-popups-with-multiple-web-links/m-p/1211915#M47843</link>
      <description>&lt;P&gt;Hi, sorry I could not be of much help, as I have been away. I am glad you have the problem solved.&lt;/P&gt;&lt;P&gt;cheers, good luck on your 'exploration'.&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 07:47:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-popups-with-multiple-web-links/m-p/1211915#M47843</guid>
      <dc:creator>PedroSoares1</dc:creator>
      <dc:date>2022-09-13T07:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Popups with multiple web links</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-popups-with-multiple-web-links/m-p/1280842#M51585</link>
      <description>&lt;P&gt;Thanks for the helpful tips! The link to the map requires credentials, and is not accessible for most of the community.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 16:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-popups-with-multiple-web-links/m-p/1280842#M51585</guid>
      <dc:creator>DaveSivertsenz</dc:creator>
      <dc:date>2023-04-20T16:14:05Z</dc:date>
    </item>
  </channel>
</rss>

