<?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: Question about Creating Expressions in Experience Builder Text Widget Dynamic Content in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/question-about-creating-expressions-in-experience/m-p/1629202#M19686</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/628968"&gt;@bphillips&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The text widget supports Arcade expressions in the June 2025 AGOL release.&lt;/P&gt;&lt;P&gt;You can connect the text widget to both the point and polygon layers and use a similar script:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// SelectedPts is the selected address (Point)
var selectedPts = $dataSources["dataSource_id1"].selectedFeatures;

// If no point is selected
if (Count(selectedPts) == 0) {
  return "No features selected."
}

// Specific City Limits (Polygon)
var cityLimits = $dataSources["dataSource_id2"].layer;
var cityPoly = First(cityLimits);

// Check to see if there are any selected features within the polygon.
var insidefeatures = Contains(cityPoly, selectedPts);

if(Count(insidefeatures) &amp;gt; 0) {
  return "The selected point falls inside the polygon.";
}
else {
  return "No selected point falls inside the polygon.";
}&lt;/LI-CODE&gt;&lt;P&gt;Please let me know if you have other questions.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shengdi&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 04:41:21 GMT</pubDate>
    <dc:creator>ShengdiZhang</dc:creator>
    <dc:date>2025-07-02T04:41:21Z</dc:date>
    <item>
      <title>Question about Creating Expressions in Experience Builder Text Widget Dynamic Content</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/question-about-creating-expressions-in-experience/m-p/1284504#M6824</link>
      <description>&lt;P&gt;I am trying to use the Text Widget in Experience Builder Developer Edition (ArcGIS Enterprise 10.7.1) using Dynamic Content to return data using specific fields.&amp;nbsp; I am trying to return a "0" if a selected address (Point) falls in a specific City Limits (Polygon) and an "2" if it falls outside them.&amp;nbsp; Maybe using a if / else statement.&amp;nbsp; I can't seem to get it to work.&amp;nbsp; Is this possible or is the Dynamic Content Expression only limited to the Expression Functions Average, Count, Sum, Max, and Min?&amp;nbsp; I was also thinking I could use a Count function using a view saying if the count is greater than 0 return "0" else return "2".&amp;nbsp; I wasn't able to get that to work either.&amp;nbsp; Is there a way to do this in the Text Widget or some other way to do this?&amp;nbsp; Any help would be appreciative.&amp;nbsp; Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 20:30:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/question-about-creating-expressions-in-experience/m-p/1284504#M6824</guid>
      <dc:creator>bphillips</dc:creator>
      <dc:date>2023-05-01T20:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Creating Expressions in Experience Builder Text Widget Dynamic Content</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/question-about-creating-expressions-in-experience/m-p/1629202#M19686</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/628968"&gt;@bphillips&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The text widget supports Arcade expressions in the June 2025 AGOL release.&lt;/P&gt;&lt;P&gt;You can connect the text widget to both the point and polygon layers and use a similar script:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// SelectedPts is the selected address (Point)
var selectedPts = $dataSources["dataSource_id1"].selectedFeatures;

// If no point is selected
if (Count(selectedPts) == 0) {
  return "No features selected."
}

// Specific City Limits (Polygon)
var cityLimits = $dataSources["dataSource_id2"].layer;
var cityPoly = First(cityLimits);

// Check to see if there are any selected features within the polygon.
var insidefeatures = Contains(cityPoly, selectedPts);

if(Count(insidefeatures) &amp;gt; 0) {
  return "The selected point falls inside the polygon.";
}
else {
  return "No selected point falls inside the polygon.";
}&lt;/LI-CODE&gt;&lt;P&gt;Please let me know if you have other questions.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shengdi&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 04:41:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/question-about-creating-expressions-in-experience/m-p/1629202#M19686</guid>
      <dc:creator>ShengdiZhang</dc:creator>
      <dc:date>2025-07-02T04:41:21Z</dc:date>
    </item>
  </channel>
</rss>

