<?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: Hiding a field in Web Map pop-up window in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/hiding-a-field-in-web-map-pop-up-window/m-p/1695503#M44055</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/672876"&gt;@doronwen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;To achieve what you want, I do not think is possible via the default Field List (at least on 11.3, have not tested ArcGIS Online or Latest ArcGIS Enterprise releases).&lt;/P&gt;&lt;P&gt;Instead you can create an Attribute Expression with the following Arcade Expression:&lt;/P&gt;&lt;PRE&gt;var val = $feature.placename;
if (IsEmpty(val) || val == null || Trim(val) == "") {
    return null; // hides the field in the pop-up
} else {
    return "ITS Host: " + val;
}&lt;/PRE&gt;&lt;P&gt;Once you have done this, remove the Field from displaying on the Field List and then on the Pop-ups add a Text element and reference your Attribute Expression like&amp;nbsp;{expression/expr0}&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2026 12:52:13 GMT</pubDate>
    <dc:creator>GlenterpriseUK</dc:creator>
    <dc:date>2026-04-10T12:52:13Z</dc:date>
    <item>
      <title>Hiding a field in Web Map pop-up window</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/hiding-a-field-in-web-map-pop-up-window/m-p/1695045#M44044</link>
      <description>&lt;P&gt;Portal 11.3&lt;/P&gt;&lt;P&gt;I have a field in the Web Map pop-up window that I would like to show/hide based on the field content: If the field is populated with data - I'd like the field to show up. If the field contain no data - I'd like that field to be hidden.&lt;/P&gt;&lt;P&gt;If found this script online, but it does not seem to work (I changed the&amp;nbsp;$feature.FieldName to the appropriate field name).&lt;/P&gt;&lt;P&gt;IIf(IsEmpty($feature.FieldName) || $feature.FieldName == 'N/A', "none", "inline")&lt;/P&gt;&lt;P&gt;&amp;nbsp;So in the example below, I would like the field named "ITS Host" to be hidden in the pop-up when there is no data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="doronwen_0-1775657836326.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/150815iC8BD89C83F8471F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="doronwen_0-1775657836326.png" alt="doronwen_0-1775657836326.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 14:57:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/hiding-a-field-in-web-map-pop-up-window/m-p/1695045#M44044</guid>
      <dc:creator>doronwen</dc:creator>
      <dc:date>2026-04-08T14:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding a field in Web Map pop-up window</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/hiding-a-field-in-web-map-pop-up-window/m-p/1695503#M44055</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/672876"&gt;@doronwen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;To achieve what you want, I do not think is possible via the default Field List (at least on 11.3, have not tested ArcGIS Online or Latest ArcGIS Enterprise releases).&lt;/P&gt;&lt;P&gt;Instead you can create an Attribute Expression with the following Arcade Expression:&lt;/P&gt;&lt;PRE&gt;var val = $feature.placename;
if (IsEmpty(val) || val == null || Trim(val) == "") {
    return null; // hides the field in the pop-up
} else {
    return "ITS Host: " + val;
}&lt;/PRE&gt;&lt;P&gt;Once you have done this, remove the Field from displaying on the Field List and then on the Pop-ups add a Text element and reference your Attribute Expression like&amp;nbsp;{expression/expr0}&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 12:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/hiding-a-field-in-web-map-pop-up-window/m-p/1695503#M44055</guid>
      <dc:creator>GlenterpriseUK</dc:creator>
      <dc:date>2026-04-10T12:52:13Z</dc:date>
    </item>
  </channel>
</rss>

