<?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 Display no value for Dynamic Text when no filter applied in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/display-no-value-for-dynamic-text-when-no-filter/m-p/1663351#M21504</link>
    <description>&lt;P&gt;In ArcGIS Online, I have a Filter widget applied to some polygons representing project areas.&amp;nbsp; I have a Text widget configured to dynamically display the name of the project.&amp;nbsp; When no filter is applied (ALL projects are visible) I would like the dynamic text to display something like 'Select a Filter' or just appear blank or something - right now it always shows the first project record as a default when no project is selected in the filter.&amp;nbsp; I think this can be accomplished with a text widget arcade expression but I'm not sure how to put it together.&amp;nbsp; I've tried the 'View for empty selection' of the data source and switching 'Default' and 'Selected features' in the text widget and dynamic content properties but nothing changes.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;The Arcade script for the Text widget looks like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Documentation: https://arcg.is/18ejKn3

function getFilteredFeatureSet(ds) {
  var result = ds.layer;
  var queryParams = ds.queryParams;

  if (!IsEmpty(queryParams.where)) {
    result = Filter(result, queryParams.where);
  }

  if (!IsEmpty(queryParams.geometry)) {
    result = Intersects(result, queryParams.geometry);
  }

  return result;
}


// Projects
// The filteredFeatureSet1 has already been filtered using spatial filters and attribute filters.
// var filteredFeatureSet1 = getFilteredFeatureSet($dataSources["dataSource_2-1989fddf1cf-layer-14"]);
// selectedFeatures1 is the selection view of data source.
// var selectedFeatures1 = $dataSources["dataSource_2-1989fddf1cf-layer-14"].selectedFeatures;


// NOTE: When using selectedFeatures, cases with no selected features must be handled manually.


return {
  value: '',
  text: {
    // size: 14,
    // color: 'rgb(0, 0, 255)',
    // bold: true,
    // italic: false,
    // underline: false,
    // strike: false
  },
};
  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Nov 2025 20:01:39 GMT</pubDate>
    <dc:creator>JustinWolff</dc:creator>
    <dc:date>2025-11-04T20:01:39Z</dc:date>
    <item>
      <title>Display no value for Dynamic Text when no filter applied</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/display-no-value-for-dynamic-text-when-no-filter/m-p/1663351#M21504</link>
      <description>&lt;P&gt;In ArcGIS Online, I have a Filter widget applied to some polygons representing project areas.&amp;nbsp; I have a Text widget configured to dynamically display the name of the project.&amp;nbsp; When no filter is applied (ALL projects are visible) I would like the dynamic text to display something like 'Select a Filter' or just appear blank or something - right now it always shows the first project record as a default when no project is selected in the filter.&amp;nbsp; I think this can be accomplished with a text widget arcade expression but I'm not sure how to put it together.&amp;nbsp; I've tried the 'View for empty selection' of the data source and switching 'Default' and 'Selected features' in the text widget and dynamic content properties but nothing changes.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;The Arcade script for the Text widget looks like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Documentation: https://arcg.is/18ejKn3

function getFilteredFeatureSet(ds) {
  var result = ds.layer;
  var queryParams = ds.queryParams;

  if (!IsEmpty(queryParams.where)) {
    result = Filter(result, queryParams.where);
  }

  if (!IsEmpty(queryParams.geometry)) {
    result = Intersects(result, queryParams.geometry);
  }

  return result;
}


// Projects
// The filteredFeatureSet1 has already been filtered using spatial filters and attribute filters.
// var filteredFeatureSet1 = getFilteredFeatureSet($dataSources["dataSource_2-1989fddf1cf-layer-14"]);
// selectedFeatures1 is the selection view of data source.
// var selectedFeatures1 = $dataSources["dataSource_2-1989fddf1cf-layer-14"].selectedFeatures;


// NOTE: When using selectedFeatures, cases with no selected features must be handled manually.


return {
  value: '',
  text: {
    // size: 14,
    // color: 'rgb(0, 0, 255)',
    // bold: true,
    // italic: false,
    // underline: false,
    // strike: false
  },
};
  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 20:01:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/display-no-value-for-dynamic-text-when-no-filter/m-p/1663351#M21504</guid>
      <dc:creator>JustinWolff</dc:creator>
      <dc:date>2025-11-04T20:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Display no value for Dynamic Text when no filter applied</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/display-no-value-for-dynamic-text-when-no-filter/m-p/1663453#M21511</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9525"&gt;@JustinWolff&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can use the script below as a reference.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Retrieve the data source
var dataSource = $dataSources["dataSource_2-1989fddf1cf-layer-14"];

// Get the current filter (WHERE clause)
var whereClause = dataSource.queryParams.where;

// Check if no filter is applied
if (IsEmpty(whereClause)) {
  return "Select a Filter";
}

// Apply the filter to the layer
var filteredFeatures = Filter(dataSource.layer, whereClause);

// Return the number of filtered records
return Count(filteredFeatures);&lt;/LI-CODE&gt;&lt;P&gt;Please let me know if you have other questions.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Shengdi&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 01:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/display-no-value-for-dynamic-text-when-no-filter/m-p/1663453#M21511</guid>
      <dc:creator>ShengdiZhang</dc:creator>
      <dc:date>2025-11-05T01:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Display no value for Dynamic Text when no filter applied</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/display-no-value-for-dynamic-text-when-no-filter/m-p/1663932#M21536</link>
      <description>&lt;P&gt;Thank you Shengdi, that got me pointed in the right direction.&lt;BR /&gt;&lt;BR /&gt;Now to figure out formatting bold/italic based on the conditions...&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 15:32:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/display-no-value-for-dynamic-text-when-no-filter/m-p/1663932#M21536</guid>
      <dc:creator>JustinWolff</dc:creator>
      <dc:date>2025-11-06T15:32:20Z</dc:date>
    </item>
  </channel>
</rss>

