<?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: Removing empty fields from popup in Portal Map Viewer using Arcade Expression in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1601398#M94526</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, I'll change the H3 and see how that goes.&amp;nbsp; That's a bummer (and a little annoying) on the expression part.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 17:18:44 GMT</pubDate>
    <dc:creator>AdamGebhart</dc:creator>
    <dc:date>2025-04-01T17:18:44Z</dc:date>
    <item>
      <title>Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1381482#M78686</link>
      <description>&lt;P&gt;Trying to configure a pop-up to remove all of the fields with no data since the list is very long.&amp;nbsp; I tried using IsEmpty but they are still there.&amp;nbsp; Any help is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a sample popup&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CJCowardin_0-1707818197175.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94581iF5B5B160CC0EB80D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CJCowardin_0-1707818197175.png" alt="CJCowardin_0-1707818197175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 09:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1381482#M78686</guid>
      <dc:creator>CJCowardin</dc:creator>
      <dc:date>2024-02-13T09:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1381539#M78688</link>
      <description>&lt;P&gt;I have a solution that I've repurposed quite a few times. Here's an Arcade expression where the return is an HTML table that will include only attributes that have a value present. You'll have to switch out the attributes to match your own.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Use Arcade &amp;gt; Text template
// create one expression for all fields
// return as table showing only populated fields
// If field is null, do not add row to table
// if field has a value, add row to table
 
// Create variables for checked-for-field and what their labels should be. 
// Select the fields to look for
var fieldsArray = ['Condition','Install_Date','Location','Intersection_Type','Facility_Type','Ramp_Config','Managed_By','Comments'];
// Set the field aliases in the same order as the fields above
var labelsArray = ['Condition','Install Date','Location','Intersection Type','Facility Type','Ramp Configuration','Managed By','Comments'];
var arrayLength = Count( fieldsArray );

// Table Header
// Identify condition and set background color accordingly
var cond = $feature.Condition
var backgroundColor = When(cond=="1 (Non-existant)","#fc461d",cond=="2 (Poor)","#df750c",cond=="3 (Functional)","#f2cc0d",cond=="4 (ADA Compliant)","#37aac4","#cccccc") 
// Set table header
var returnString = `&amp;lt;h3 style="background-color:${backgroundColor};padding-left:2%"&amp;gt;Ramp Info&amp;lt;/h3&amp;gt;&amp;lt;table style="width:100%;background-color:#f4f4f4;"&amp;gt;`;

// Make sure the final table is searching for correct attributes
Expects( $feature, 'Condition','Install_Date','Location','Intersection_Type','Facility_Type','Ramp_Config','Managed_By','Comments')

/*loops through a number of times eual to the length of the array (that's the i&amp;lt;arrayLength part), incrementing by one each time (i++). If the attribute if the field array is not empty 
(!IsEmpty), then the value of the the variable returnString is equal the value in the fieldsArray equal to the index value of the array (fieldsArray[i]) plus the additional portion of the
return string enclosed in the curly brackets. If it is empty, then the value of returnString   
*/

for (var i = 0; i &amp;lt; arrayLength; i++ ) {
  if ( !IsEmpty( $feature[ fieldsArray[i] ] ) ){
    //returnString = returnString + "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;" + labelsArray[i] + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + $feature[ fieldsArray[i] ] + "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";
    returnString = `${returnString}&amp;lt;tr&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;&amp;lt;b&amp;gt;${labelsArray[i]}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;${$feature[ fieldsArray[i] ]}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;`;
  }}
 
returnString = returnString + "&amp;lt;/table&amp;gt;";

return { 
   type : 'text', 
   text : returnString 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what the result looks like (note that I also used one of the attributes, Condition, to determine the background color of the header:&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="ZachBodenner_0-1707833902624.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94588i70B150CCDF618FA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_0-1707833902624.png" alt="ZachBodenner_0-1707833902624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 14:18:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1381539#M78688</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-02-13T14:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1381695#M78701</link>
      <description>&lt;P&gt;I just need to create a new Arcade expression under my pop-up properties box, add the above and change to my fields?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1381695#M78701</guid>
      <dc:creator>CJCowardin</dc:creator>
      <dc:date>2024-02-13T17:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1381704#M78702</link>
      <description>&lt;P&gt;That's right! You can think of the two variable fieldsArray and labelsArray as matched pairs. The fieldsArray values need to be the actual database field names, then you can alias them (like you would do from the field menu in map Viewer), just making sure that the label is in the same order as the field name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, you'll also have to adjust the HTML. This part of the code:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var returnString = `&amp;lt;h3 style="background-color:${backgroundColor};padding-left:2%"&amp;gt;Ramp Info&amp;lt;/h3&amp;gt;&amp;lt;table style="width:100%;background-color:#f4f4f4;"&amp;gt;`;&lt;/LI-CODE&gt;&lt;P&gt;wont work for you because it's relying in my backgroundColor variable, which is based in the field "Condition."&amp;nbsp;&lt;/P&gt;&lt;P&gt;You cane remove this portion:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var cond = $feature.Condition
var backgroundColor = When(cond=="1 (Non-existant)","#fc461d",cond=="2 (Poor)","#df750c",cond=="3 (Functional)","#f2cc0d",cond=="4 (ADA Compliant)","#37aac4","#cccccc") &lt;/LI-CODE&gt;&lt;P&gt;and then just remove everything after "h3" in that tag.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1381704#M78702</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-02-13T17:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1383305#M78936</link>
      <description>&lt;P&gt;I added this and just used 2 fields to test.&amp;nbsp; I don't see anything different in my popup.&amp;nbsp; It's still showing Afghan which is empty and that's what I don't want to show.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Use Arcade &amp;gt; Text template&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// create one expression for all fields&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// return as table showing only populated fields&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// If field is null, do not add row to table&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// if field has a value, add row to table&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Create variables for checked-for-field and what their labels should be. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Select the fields to look for&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;fieldsArray&lt;/SPAN&gt;&lt;SPAN&gt; = [&lt;/SPAN&gt;&lt;SPAN&gt;'Afghan'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Akan'&lt;/SPAN&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Set the field aliases in the same order as the fields above&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;labelsArray&lt;/SPAN&gt;&lt;SPAN&gt; = [&lt;/SPAN&gt;&lt;SPAN&gt;'Afghan'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Akan'&lt;/SPAN&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;arrayLength&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Count&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;fieldsArray&lt;/SPAN&gt;&lt;SPAN&gt; );&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Table Header&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Identify condition and set background color accordingly&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Set table header&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;returnString&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;`&amp;lt;h3&amp;gt;`&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Make sure the final table is searching for correct attributes&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Expects&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Afghan'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Akan'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;/*loops through a number of times eual to the length of the array (that's the i&amp;lt;arrayLength part), incrementing by one each time (i++). If the attribute if the field array is not empty &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(!IsEmpty), then the value of the the variable returnString is equal the value in the fieldsArray equal to the index value of the array (fieldsArray[i]) plus the additional portion of the&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return string enclosed in the curly brackets. If it is empty, then the value of returnString &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;arrayLength&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN&gt;++ ) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; ( !&lt;/SPAN&gt;&lt;SPAN&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;[ &lt;/SPAN&gt;&lt;SPAN&gt;fieldsArray&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN&gt;] ] ) ){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//returnString = returnString + "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;" + labelsArray[i] + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + $feature[ fieldsArray[i] ] + "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;returnString&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;returnString&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;tr&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;&amp;lt;b&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;labelsArray&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN&gt;]}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;[ &lt;/SPAN&gt;&lt;SPAN&gt;fieldsArray&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN&gt;] ]}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;`&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;returnString&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;returnString&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;/table&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;'text'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;returnString&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Feb 2024 12:23:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1383305#M78936</guid>
      <dc:creator>CJCowardin</dc:creator>
      <dc:date>2024-02-16T12:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1383325#M78937</link>
      <description>&lt;P&gt;I see a couple things which could be tripping you up. Your text string starts with an &amp;lt;h3&amp;gt; tag, but doesn't have a closing tag. Try adding text followed by a close tag just to see what happens:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var returnString = `&amp;lt;h3&amp;gt;This is my popup title&amp;lt;/h3&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Next, are you using the Arcade popup element (as opposed to text popup element or an arcade expression)? This format of Arcade will only work using the Arcade popup element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 13:11:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1383325#M78937</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-02-16T13:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1525872#M87331</link>
      <description>&lt;P&gt;This was exactly what I have been looking for!&amp;nbsp; Couple questions I wonder if you can help me with?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. In the header, instead of specifying the text like you have as "Ramp Info" can I have it pull an attribute field or two?&amp;nbsp; I would like to use &lt;STRONG&gt;$feature.Project_Title - $feature.Project_Status&lt;/STRONG&gt; so it looks something like &lt;STRONG&gt;Generation - In Progress&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;2. I noticed it is displaying a Date field as&amp;nbsp;&lt;SPAN&gt;2024-02-01T00:00:00-06:00 even though I have the field date format set to MM/DD/YYYY... is there any way I can get this to display just date and in the MM/DD/YYYY format (so 02/01/2024 in this case)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 15:49:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1525872#M87331</guid>
      <dc:creator>LAGIBOO</dc:creator>
      <dc:date>2024-08-22T15:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1525883#M87332</link>
      <description>&lt;P&gt;Yes to both! So my header variable is here:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;`&amp;lt;h3 style="background-color:${backgroundColor};padding-left:2%"&amp;gt;Ramp Info&amp;lt;/h3&amp;gt;&amp;lt;table style="width:100%;background-color:#f4f4f4;"&amp;gt;`;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just change the Ramp Info text to something that fits your needs&lt;/P&gt;&lt;LI-CODE lang="c"&gt;`&amp;lt;h3 style="background-color:${backgroundColor};padding-left:2%"&amp;gt;${$feature.Project_Title} - ${$feature.Project_Status}&amp;lt;/h3&amp;gt;&amp;lt;table style="width:100%;background-color:#f4f4f4;"&amp;gt;`;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As to dates, the display can be easily changed as well, but they would need to be pulled out of the loop return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var date = Text($feature.datefield,'DD MMM, YYYY') //or whatever format
var dateReturn = `&amp;lt;tr&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;&amp;lt;b&amp;gt;Date: &amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;${date}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;`

for (var i = 0; i &amp;lt; arrayLength; i++ ) {
  if ( !IsEmpty( $feature[ fieldsArray[i] ] ) ){
    //returnString = returnString + "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;" + labelsArray[i] + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + $feature[ fieldsArray[i] ] + "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";
    returnString = `${returnString}&amp;lt;tr&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;&amp;lt;b&amp;gt;${labelsArray[i]}&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;${$feature[ fieldsArray[i] ]}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;`;
  }}

returnString = returnString + dateReturn + "&amp;lt;/table&amp;gt;";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what I did there was create a text variable for the date, plug it into a table row with two columns (same as the loop return table, and in the same style) and then place it after the loop, but before closing the table.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 16:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1525883#M87332</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-08-22T16:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1550006#M89272</link>
      <description>&lt;P&gt;I want to use domain names in the return string, is that possible?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 16:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1550006#M89272</guid>
      <dc:creator>GretaSveinsdóttir</dc:creator>
      <dc:date>2024-10-18T16:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1550007#M89273</link>
      <description>&lt;P&gt;I want to use domain names for one field in the return string, is that possible?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 16:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1550007#M89273</guid>
      <dc:creator>GretaSveinsdóttir</dc:creator>
      <dc:date>2024-10-18T16:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1600857#M94478</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi.&amp;nbsp; Do you know how to get the table result to be displayed horizontally to look more like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdamGebhart_0-1743431487975.png" style="width: 306px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129020iFF76CF418ABF267F/image-dimensions/306x108?v=v2" width="306" height="108" role="button" title="AdamGebhart_0-1743431487975.png" alt="AdamGebhart_0-1743431487975.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm trying to figure out how to do the horizontal display and remove the blank/null lines ('na' above) so that only populated records are returned.&amp;nbsp; My feature class has fields (index, book, page, imageURL) for documents one thru four.&amp;nbsp; Sometimes only doc1 is populated, sometimes it's only doc2 and so on.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 14:36:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1600857#M94478</guid>
      <dc:creator>AdamGebhart</dc:creator>
      <dc:date>2025-03-31T14:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1600910#M94480</link>
      <description>&lt;P&gt;So not knowing exactly how your data it set up, are you running this on a feature-to-table kind of relationship, so that each row in the table is represented by one index value? Give this a whirl:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Format main table html
var tStyle = `&amp;lt;table style="width:100%;background-color:#f4f4f4;"&amp;gt;`;
var trpt1 = `&amp;lt;tr&amp;gt;&amp;lt;td style="color: #323232;border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;&amp;lt;b&amp;gt;`;
var trpt2 = `&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:25%;padding-left:2%"&amp;gt;`;
var trpt3 = `&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:25%;padding-left:2%"&amp;gt;`;
var trpt4 = `&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;`;
var endTable = `&amp;lt;/table&amp;gt;`;

// Format html for the column titles
var hrpt1 = `&amp;lt;tr&amp;gt;&amp;lt;td style="color:#ffffff;background-color: #323232; border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;&amp;lt;b&amp;gt;`;
var hrpt2 = `&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="color:#ffffff;background-color: #323232; border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:25%;padding-left:2%"&amp;gt;`;
var hrpt3 = `&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="color:#ffffff;background-color: #323232; border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:25%;padding-left:2%"&amp;gt;`;
var hrpt4 = `&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;`

var titleRow = `${hrpt1}Index${hrpt2}Book - Page${hrpt3}Document${hrpt4}`

// Get the GlobalID of the current tree feature
var Global = $feature.GlobalID;

// Retrieve related inspection records (change this to match the related table)
var relatedForms = FeatureSetByName($map, "Tree Inventory Form");

// Define a filter statement to get only related records for this tree
var filterStatement = "TreeInv_Rel = @Global";

// Apply the filter to get only the relevant inspection forms
var inspForm = Filter(relatedForms, filterStatement);

// Begin final return string by setting the header and opening the table
// Also, add the column titles
var returnString = `&amp;lt;h3 style="color:#ffffff;background-color:#ea0c12;padding-left:2%"&amp;gt;Right of Way Documents&amp;lt;/h3&amp;gt; ${tStyle} ${titleRow}`;

// Loop through the related records and add rows
for (var f in inspForm) {

    var i = f.ObjectID;
    var b = f.Condition;
    var p = f.Performed_By;
    var d = f.Maintenance_Performed;
    
    if (!IsEmpty(i)) {
        returnString += `${trpt1}${i}${trpt2}${b} - ${p}${trpt3}${d}${trpt4}`;
    }
}


// Close the table
returnString += endTable;

// Return the formatted string as a text output
return { 
    type: 'text', 
    text: `${returnString}`
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used my tree inventory as an example, and the Object ID as the check to see if the row was empty or not, so obviously you would need to change that variable 'i' to "var i = f.Index". But this is what I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_0-1743436355240.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129031i1FA55FF2ADF5BE6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_0-1743436355240.png" alt="ZachBodenner_0-1743436355240.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, the field I used in the 'Document' column isn't a hyperlink, so you'll probably have to format that as&amp;nbsp; &amp;lt;h ref&amp;gt; but this should get you most of the way there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 15:53:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1600910#M94480</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-03-31T15:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1600953#M94483</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt; .&amp;nbsp; I'll try out your element with my stuff this afternoon.&lt;/P&gt;&lt;P&gt;In case this helps answer your questions, I have a map service referencing a polygon feature class that shows source document locations for right-of-way easements, acquisitions, etc.&amp;nbsp; We have up to four possible documents, and like I said in the previous post, not all shapes have all four document fields (book type, book #, page #, imageURL) populated.&amp;nbsp; In fact, few do out of 2,000+ features.&lt;/P&gt;&lt;P&gt;Below is what my html table looks like in the Text element.&amp;nbsp; Essentially, book1 doc fields are the first line and the fields are referenced via expressions 0 thru 3.&amp;nbsp; Book2 doc fields are line 2 and expressions 4 thru 7.&amp;nbsp; I'll always be pointing to an expression (based on field values) to populate the table rows instead of directly displaying the values from the feature class.&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="AdamGebhart_0-1743440953377.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129044i233B5F49E74065B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdamGebhart_0-1743440953377.png" alt="AdamGebhart_0-1743440953377.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 17:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1600953#M94483</guid>
      <dc:creator>AdamGebhart</dc:creator>
      <dc:date>2025-03-31T17:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1600989#M94485</link>
      <description>&lt;P&gt;Ah okay so your data is like, index1, book1, page1, doc1, index2, book2, page2, doc2, etc? You have a finite number of possible documents?&lt;/P&gt;&lt;P&gt;If that's the case your situation gets a little simpler because you don't actually need to loop through anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially you could do this instead:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Format main table html
var tStyle = `&amp;lt;table style="width:100%;background-color:#f4f4f4;"&amp;gt;`;
var trpt1 = `&amp;lt;tr&amp;gt;&amp;lt;td style="color: #323232;border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;&amp;lt;b&amp;gt;`;
var trpt2 = `&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:25%;padding-left:2%"&amp;gt;`;
var trpt3 = `&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:25%;padding-left:2%"&amp;gt;`;
var trpt4 = `&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;`;
var endTable = `&amp;lt;/table&amp;gt;`;

// Format html for the column titles
var hrpt1 = `&amp;lt;tr&amp;gt;&amp;lt;td style="color:#ffffff;background-color: #323232; border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:50%;padding-left:2%"&amp;gt;&amp;lt;b&amp;gt;`;
var hrpt2 = `&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="color:#ffffff;background-color: #323232; border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:25%;padding-left:2%"&amp;gt;`;
var hrpt3 = `&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td style="color:#ffffff;background-color: #323232; border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;width:25%;padding-left:2%"&amp;gt;`;
var hrpt4 = `&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;`

// Set the different style for the title row.
var titleRow = `${hrpt1}Index${hrpt2}Book - Page${hrpt3}Document${hrpt4}`

var i1 = $feature.index1
var b1= $feature.book1
var p1 = $feature.page1
var d1 = $feature.indexURL1

var i2 = $feature.index2
var b2= $feature.book2
var p2 = $feature.page2
var d2 = $feature.indexURL2

var i3 = $feature.index3
var b3= $feature.book3
var p3 = $feature.page3
var d3 = $feature.indexURL3

var i4 = $feature.index4
var b4= $feature.book4
var p4 = $feature.page4
var d4 = $feature.indexURL4

// If the index is not empty, return a table row. Otherwise, leave it empty
var row1 = IIF( !IsEmpty( i1),   `${trpt1}${i1}${trpt2}${b1} - ${p1}${trpt3}${d1}${trpt4}`,'')
var row2 = IIF( !IsEmpty( i2),  `${trpt1}${i2}${trpt2}${b2} - ${p2}${trpt3}${d2}${trpt4}`,'')
var row3 = IIF( !IsEmpty( i3),   `${trpt1}${i3}${trpt2}${b3} - ${p3}${trpt3}${d3}${trpt4}`,'')
var row4 = IIF( !IsEmpty( i4),   `${trpt1}${i4}${trpt2}${b4} - ${p4}${trpt3}${d4}${trpt4}`,'')


// BSetup final variable, which includes header, title row, and each row's conditional visibility
var returnString = `&amp;lt;h3 style="color:#ffffff;background-color:#ea0c12;padding-left:2%"&amp;gt;Right of Way Documents&amp;lt;/h3&amp;gt; 
  ${tStyle} 
    ${titleRow}
    ${row1}
    ${row2}
    ${row3}
    ${row4}
  ${endTable}`


// Return the formatted string as a text output
return { 
    type: 'text', 
    text: `${returnString}`
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is the case, you can basically set up your table manually since you know the maximum number of rows possible.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 18:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1600989#M94485</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-03-31T18:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1601067#M94495</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&amp;nbsp; I'm moving in the right direction.&amp;nbsp; Two more things though.&lt;/P&gt;&lt;P&gt;1) In place of the field names I need to reference expressions that I've created to better display the information.&amp;nbsp; I haven't been able to get the syntax right - do you know how to do that?&amp;nbsp; For instance, in the doc1 variables I need...&lt;/P&gt;&lt;P&gt;i1 = expression/expr0 (instead of $feature.index1)&lt;/P&gt;&lt;P&gt;b1 = expression/expr1 (instead of $feature.book1)&lt;/P&gt;&lt;P&gt;Etc.&amp;nbsp; I've tried $expression/expr0, ${expression/exp0}, {expression/exp0} and the code won't run.&amp;nbsp; I can add these expressions as variables in the element but that will add A LOT of code that I don't want in it if I don't need it there.&lt;/P&gt;&lt;P&gt;2) Any idea how to remove the white space between the header (red) and title row (dark gray) so that it looks like the image in first my post from today?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdamGebhart_0-1743449770970.png" style="width: 331px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129082iF274C5DB6A54DD2D/image-dimensions/331x110?v=v2" width="331" height="110" role="button" title="AdamGebhart_0-1743449770970.png" alt="AdamGebhart_0-1743449770970.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdamGebhart_1-1743450274454.png" style="width: 333px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129083iDCE5A525FBBDC1BF/image-dimensions/333x47?v=v2" width="333" height="47" role="button" title="AdamGebhart_1-1743450274454.png" alt="AdamGebhart_1-1743450274454.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>Mon, 31 Mar 2025 19:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1601067#M94495</guid>
      <dc:creator>AdamGebhart</dc:creator>
      <dc:date>2025-03-31T19:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1601255#M94510</link>
      <description>&lt;P&gt;As to point 2, you could probably just change the HTML away from an H3 tag and just create a new table row with only one column (&amp;lt;td&amp;gt;)&lt;/P&gt;&lt;P&gt;As to the first, Arcade Elements in the popup can't reference the expressions you've already written, at least as far as I know. You would have to include those in the Arcade elements itself.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 13:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1601255#M94510</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-04-01T13:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1601398#M94526</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, I'll change the H3 and see how that goes.&amp;nbsp; That's a bummer (and a little annoying) on the expression part.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 17:18:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1601398#M94526</guid>
      <dc:creator>AdamGebhart</dc:creator>
      <dc:date>2025-04-01T17:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1602935#M94658</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I have what I need now, subject to a few minor changes after feedback from our users.&amp;nbsp; Thanks again for all of your help and for sharing the code.&amp;nbsp; It is greatly appreciated and things went much faster after you responded.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 19:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1602935#M94658</guid>
      <dc:creator>AdamGebhart</dc:creator>
      <dc:date>2025-04-04T19:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Removing empty fields from popup in Portal Map Viewer using Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1602947#M94659</link>
      <description>&lt;P&gt;Glad to help!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 19:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/removing-empty-fields-from-popup-in-portal-map/m-p/1602947#M94659</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-04-04T19:08:15Z</dc:date>
    </item>
  </channel>
</rss>

