<?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 Expression will not display in Pop-up in new Map Viewer in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-will-not-display-in-pop-up-in/m-p/1140497#M44132</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am pretty new to the new Map Viewer, so maybe I just missed a step.&lt;/P&gt;&lt;P&gt;I am customizing the pop-up in the new Map Viewer using Arcade. The expression works when I hit Test, but the Pop-up in the new Map Viewer only briefly display a spinning circle and doesn't display the message created by the expression. I have tried re-doing it, restarting the map viewer, but it doesn't work. When I put the same expression in the classic Map Viewer, it immediately works. Any ideas? Any assistance is greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var LocCodes = {&lt;BR /&gt;"incorp":"incorporated city",&lt;BR /&gt;"unincorp":"unincorporated community"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;var Loc = $feature.loctype&lt;BR /&gt;var LocDesc = LocCodes[Loc]&lt;BR /&gt;var SumCases = sum($layer, "confirmedcases")&lt;BR /&gt;var FilterCases = sum(Filter($layer,"loctype=@Loc"),"confirmedcases")&lt;BR /&gt;Return Proper($feature.name) + " is an " + LocDesc + " located in San Diego County. It recorded " + $feature.confirmedcases + " COVID cases as of Jan, 25, 2022. This represents " + Round($feature.confirmedcases/FilterCases*100,2) + "% of the total cases recorded in all of the " + LocDesc + " jurisdiction, and " + Round($feature.confirmedcases/SumCases*100,2) + "% of the total cases recorded for the entire county."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tested fine for the new viewer" style="width: 964px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33057i144E227B160C8573/image-size/large?v=v2&amp;amp;px=999" role="button" title="Test.jpg" alt="Tested fine for the new viewer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Tested fine for the new viewer&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression tested fine in the new and classic viewer&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Arcade expression doesn't show in new viewer's pop-up" style="width: 730px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33058i4E04626889D7076E/image-size/large?v=v2&amp;amp;px=999" role="button" title="NewviewNopop.jpg" alt="Arcade expression doesn't show in new viewer's pop-up" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Arcade expression doesn't show in new viewer's pop-up&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;New viewer pop-up fails to update with the message from the expression&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="worksinclassic.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33060i25A332ABC3236C95/image-size/large?v=v2&amp;amp;px=999" role="button" title="worksinclassic.jpg" alt="worksinclassic.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;EM&gt;Classic viewer pop-up updates with the message from the expression&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 19:23:57 GMT</pubDate>
    <dc:creator>WingCheung1</dc:creator>
    <dc:date>2022-02-03T19:23:57Z</dc:date>
    <item>
      <title>Arcade Expression will not display in Pop-up in new Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-will-not-display-in-pop-up-in/m-p/1140497#M44132</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am pretty new to the new Map Viewer, so maybe I just missed a step.&lt;/P&gt;&lt;P&gt;I am customizing the pop-up in the new Map Viewer using Arcade. The expression works when I hit Test, but the Pop-up in the new Map Viewer only briefly display a spinning circle and doesn't display the message created by the expression. I have tried re-doing it, restarting the map viewer, but it doesn't work. When I put the same expression in the classic Map Viewer, it immediately works. Any ideas? Any assistance is greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var LocCodes = {&lt;BR /&gt;"incorp":"incorporated city",&lt;BR /&gt;"unincorp":"unincorporated community"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;var Loc = $feature.loctype&lt;BR /&gt;var LocDesc = LocCodes[Loc]&lt;BR /&gt;var SumCases = sum($layer, "confirmedcases")&lt;BR /&gt;var FilterCases = sum(Filter($layer,"loctype=@Loc"),"confirmedcases")&lt;BR /&gt;Return Proper($feature.name) + " is an " + LocDesc + " located in San Diego County. It recorded " + $feature.confirmedcases + " COVID cases as of Jan, 25, 2022. This represents " + Round($feature.confirmedcases/FilterCases*100,2) + "% of the total cases recorded in all of the " + LocDesc + " jurisdiction, and " + Round($feature.confirmedcases/SumCases*100,2) + "% of the total cases recorded for the entire county."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tested fine for the new viewer" style="width: 964px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33057i144E227B160C8573/image-size/large?v=v2&amp;amp;px=999" role="button" title="Test.jpg" alt="Tested fine for the new viewer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Tested fine for the new viewer&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression tested fine in the new and classic viewer&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Arcade expression doesn't show in new viewer's pop-up" style="width: 730px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33058i4E04626889D7076E/image-size/large?v=v2&amp;amp;px=999" role="button" title="NewviewNopop.jpg" alt="Arcade expression doesn't show in new viewer's pop-up" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Arcade expression doesn't show in new viewer's pop-up&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;New viewer pop-up fails to update with the message from the expression&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="worksinclassic.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33060i25A332ABC3236C95/image-size/large?v=v2&amp;amp;px=999" role="button" title="worksinclassic.jpg" alt="worksinclassic.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;EM&gt;Classic viewer pop-up updates with the message from the expression&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 19:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-will-not-display-in-pop-up-in/m-p/1140497#M44132</guid>
      <dc:creator>WingCheung1</dc:creator>
      <dc:date>2022-02-03T19:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression will not display in Pop-up in new Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-will-not-display-in-pop-up-in/m-p/1140526#M44135</link>
      <description>&lt;P&gt;Hello Wing,&lt;/P&gt;&lt;P&gt;I think you have to do one extra step and add the expression field in as a "field" to you pop-up in the New Viewer.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 20:18:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-will-not-display-in-pop-up-in/m-p/1140526#M44135</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2022-02-03T20:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression will not display in Pop-up in new Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-will-not-display-in-pop-up-in/m-p/1140974#M44172</link>
      <description>&lt;P&gt;Thank you Amada. I figured out what I was doing wrong. I added my Arcade Expression using the +Add content icon instead of Manage Expression. Once I went through Manage Expression and added my expression there, I was able to see my expression in the Fields list and include it in my pop-up. Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 00:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-will-not-display-in-pop-up-in/m-p/1140974#M44172</guid>
      <dc:creator>WingCheung1</dc:creator>
      <dc:date>2022-02-05T00:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression will not display in Pop-up in new Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-will-not-display-in-pop-up-in/m-p/1220012#M48260</link>
      <description>&lt;P&gt;This is exactly what I was doing wrong....thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 18:58:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-will-not-display-in-pop-up-in/m-p/1220012#M48260</guid>
      <dc:creator>ryanEvanczyk</dc:creator>
      <dc:date>2022-10-07T18:58:16Z</dc:date>
    </item>
  </channel>
</rss>

