<?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 Expression not showing up in Map Viewer in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244275#M49536</link>
    <description>&lt;P&gt;It appears as if you used the&amp;nbsp; + Add content button in the main Pop-ups editor to add the &amp;lt;/&amp;gt; Arcade Expression.&lt;/P&gt;&lt;P&gt;Not even sure why this is here as it seem to have no effect (as you are seeing).&lt;/P&gt;&lt;P&gt;If you go to the "Attribute expressions" option and add the expression there, it will then show up in the Select Fields list and will allow you to add it to the popup.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1672334139505.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59449iE000EA7A10FD116D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1672334139505.png" alt="RhettZufelt_0-1672334139505.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is also an option at the bottom of the Select fields window to + Add expression.&amp;nbsp; either method seems to work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_1-1672334205469.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59450i2028574D17378491/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_1-1672334205469.png" alt="RhettZufelt_1-1672334205469.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;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 17:17:22 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2022-12-29T17:17:22Z</dc:date>
    <item>
      <title>Arcade Expression not showing up in Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244226#M49526</link>
      <description>&lt;P&gt;Hello!&amp;nbsp; I'm trying to use Arcade to display text on a pop-up in Map Viewer.&amp;nbsp; When I test the code within the new Arcade Editor, it works exactly as intended:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var lines = FeatureSetById($map, /* Sewer Line */ "184e8d5e05b-layer-7");
var bufferArea = Buffer($feature, 10, 'feet');
var intersectedLine = First(Intersects(lines, bufferArea));
var facilityId = '';
if(intersectedLine != null){
    facilityId = intersectedLine.FACILITYID;
}

var cctvYears = FeatureSetById($map, /* SsTelevisedMains */ "184e8d5e05b-layer-8", ['LINETOPOINT', 'INSPECTION_DATE']);
var filteredYears = Filter(cctvYears, "SEGMENT_ID = '" + facilityId + "'");
var sortedYears = OrderBy(filteredYears, 'INSPECTION_DATE desc');
var lastYear = First(sortedYears);
var defects = FeatureSetByName($map, "SsCCTVConditions");
var LineToPoint = lastYear.LINETOPOINT;
var filteredDefects = Filter(defects, "LINETOPOINT = '" + LineToPoint + "'");
var topDefect = Filter(filteredDefects, "Grade &amp;gt;= 3");
var allDefects = '';
for(var d in topDefect){
  allDefects = allDefects + "(" + d.Grade + ")" + " Type: " + d.PACP_CODE + " Distance: " + Round(d.DISTANCE, 2) + "\n";
}
return { 
	type : 'text', 
	text : allDefects //this property supports html tags 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, nothing shows up in the pop-up:&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="AidanDonnelly_0-1672326472861.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59431iE6270042074FBD93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AidanDonnelly_0-1672326472861.png" alt="AidanDonnelly_0-1672326472861.png" /&gt;&lt;/span&gt;&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="AidanDonnelly_1-1672326491983.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59432i6359675155A772E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AidanDonnelly_1-1672326491983.png" alt="AidanDonnelly_1-1672326491983.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on my configuration, I assume the expression should be displayed above the Fields List and below the Title.&amp;nbsp; Am I implementing the expression in the pop-up incorrectly?&amp;nbsp; I can confirm that the same expression works in Field Maps and the newly implemented Forms in Map Viewer.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 15:09:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244226#M49526</guid>
      <dc:creator>AidanDonnelly</dc:creator>
      <dc:date>2022-12-29T15:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression not showing up in Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244244#M49528</link>
      <description>&lt;P&gt;I'm not terribly familiar with arcade as well, but I wonder if you are returning a feature set or an feature? I've had similar troubles.&lt;/P&gt;&lt;P&gt;I ask because maybe you need to add the code into "Attribute Expressions" first vs "Arcade" in the pop up and then using the Text type in the pop up, add your expression there {expression/expr0} etc. It shouldn't matter whether it's before or after your fields.&lt;/P&gt;&lt;P&gt;But I could be totally wrong!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 15:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244244#M49528</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2022-12-29T15:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression not showing up in Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244249#M49530</link>
      <description>&lt;P&gt;In the Fields List, Select Fields and put check box next to the expression to select it.&amp;nbsp; Then you can move it wherever you want in the popup field list.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1672329960829.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59441i80E0E46BDAD5F9C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1672329960829.png" alt="RhettZufelt_0-1672329960829.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 16:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244249#M49530</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-12-29T16:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression not showing up in Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244269#M49535</link>
      <description>&lt;P&gt;Hi Rhett,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response!&amp;nbsp; I tried that, however, the expression isn't showing up in the field list:&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="AidanDonnelly_0-1672333390388.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59447iBBC0868FC64BCBBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AidanDonnelly_0-1672333390388.png" alt="AidanDonnelly_0-1672333390388.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 17:03:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244269#M49535</guid>
      <dc:creator>AidanDonnelly</dc:creator>
      <dc:date>2022-12-29T17:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression not showing up in Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244275#M49536</link>
      <description>&lt;P&gt;It appears as if you used the&amp;nbsp; + Add content button in the main Pop-ups editor to add the &amp;lt;/&amp;gt; Arcade Expression.&lt;/P&gt;&lt;P&gt;Not even sure why this is here as it seem to have no effect (as you are seeing).&lt;/P&gt;&lt;P&gt;If you go to the "Attribute expressions" option and add the expression there, it will then show up in the Select Fields list and will allow you to add it to the popup.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1672334139505.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59449iE000EA7A10FD116D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1672334139505.png" alt="RhettZufelt_0-1672334139505.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is also an option at the bottom of the Select fields window to + Add expression.&amp;nbsp; either method seems to work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_1-1672334205469.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59450i2028574D17378491/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_1-1672334205469.png" alt="RhettZufelt_1-1672334205469.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;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 17:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244275#M49536</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-12-29T17:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression not showing up in Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244278#M49537</link>
      <description>&lt;P&gt;I use the Arcade option when creating a custom chart! You'll notice with the "+Add Content Arcade" version, there are custom chart templates available which is not available in Attribute Expressions. Attribute Expression is just useful when just trying to create an additional custom, on the fly, attribute, as a individual "feature". Where the +Add Content Arcade way, creates "features sets"... which is needed for custom graphs. Can't create a "Feature set" in Attribute Expressions.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 17:22:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244278#M49537</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2022-12-29T17:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression not showing up in Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244282#M49538</link>
      <description>&lt;P&gt;Hi Teresa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I'm looking to do - in the Arcade editor, I see there's templates for Field Lists, Charts and Rich text - I'm hoping to load the resulting string from my expression into rich text and display outside of the field list, for clarity of viewers.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 17:25:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244282#M49538</guid>
      <dc:creator>AidanDonnelly</dc:creator>
      <dc:date>2022-12-29T17:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression not showing up in Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244288#M49539</link>
      <description>&lt;P&gt;Ohhh, gotcha! Well, I haven't tried rich text! But this Esri blog seems to put the var inside of ${variable name} whereas it looks like you've just put allDefects. Does return ${allDefects} make a difference?&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/part-1-introducing-arcade-pop-up-content-elements/" target="_blank"&gt;Part 1: Introducing Arcade Pop-up Content Elements (esri.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 17:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244288#M49539</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2022-12-29T17:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression not showing up in Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244290#M49540</link>
      <description>&lt;P&gt;I also noticed they put the entire return text inside ` ` accents&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 17:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-not-showing-up-in-map-viewer/m-p/1244290#M49540</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2022-12-29T17:43:12Z</dc:date>
    </item>
  </channel>
</rss>

