<?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 Arcade Code for popup in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-code-for-popup/m-p/1199873#M47261</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have this code which bring different fields from another layer to pop up but I can't get the result on popup&lt;/P&gt;&lt;PRE&gt;var fips = $feature["parent_id"]

var dd = FeatureSetByName($map,
"Survey v2", ['age','gender','race'],False)

var fillterSur = "survey_id = @fips"

var cou = First(Filter(dd, fillterSur))

var popupTEXT = "Age: "
+Text(cou,'#,###')
var popupTEXT = "gender: "
+Text(cou,'#,###')
var popupTEXT = "race: "
+Text(cou,'#,###')

return popupTEXT&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result I am getting is like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anonymous_0-1659713413690.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47909iC51AB07FA358CC14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anonymous_0-1659713413690.png" alt="anonymous_0-1659713413690.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 15:31:13 GMT</pubDate>
    <dc:creator>anonymous55</dc:creator>
    <dc:date>2022-08-05T15:31:13Z</dc:date>
    <item>
      <title>Arcade Code for popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-code-for-popup/m-p/1199873#M47261</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have this code which bring different fields from another layer to pop up but I can't get the result on popup&lt;/P&gt;&lt;PRE&gt;var fips = $feature["parent_id"]

var dd = FeatureSetByName($map,
"Survey v2", ['age','gender','race'],False)

var fillterSur = "survey_id = @fips"

var cou = First(Filter(dd, fillterSur))

var popupTEXT = "Age: "
+Text(cou,'#,###')
var popupTEXT = "gender: "
+Text(cou,'#,###')
var popupTEXT = "race: "
+Text(cou,'#,###')

return popupTEXT&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result I am getting is like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anonymous_0-1659713413690.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47909iC51AB07FA358CC14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anonymous_0-1659713413690.png" alt="anonymous_0-1659713413690.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 15:31:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-code-for-popup/m-p/1199873#M47261</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2022-08-05T15:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Code for popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-code-for-popup/m-p/1199998#M47270</link>
      <description>&lt;P&gt;You have to provide the appropriate field to show for each statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var popupTEXT = "Age: " + cou.age; //you don't need to use Text formatting in this line since the value would be "25 - 34"
var popupTEXT = "gender: " + cou.gender;
var popupTEXT = "race: " + cou.race;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If&amp;nbsp; you want all three values in the same popup, this is one way of doing so&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var popupTEXT = "Age: " + cou.age + TextFormatting.NewLine + 
                "gender: " + cou.gender + TextFormatting.NewLine + 
                "race: " + cou.race;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 19:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-code-for-popup/m-p/1199998#M47270</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-08-05T19:04:41Z</dc:date>
    </item>
  </channel>
</rss>

