<?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 Customizing an AGO pop-up to exclude an attribute field if the value is null in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267811#M20627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to configure an AGO pop-up so that a field is only displayed in the pop-up when the value is not null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, I have a specific attribute (Coal Gas Sites) that is only populated for a number of the total number of sites in my feature service.&amp;nbsp; I would only like to display the Coal Gas Sites attribute in my pop-up window when the value is not null and not have it present when the value is null.&amp;nbsp; Can this be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Nov 2019 17:15:21 GMT</pubDate>
    <dc:creator>JoeStefanoni</dc:creator>
    <dc:date>2019-11-04T17:15:21Z</dc:date>
    <item>
      <title>Customizing an AGO pop-up to exclude an attribute field if the value is null</title>
      <link>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267811#M20627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to configure an AGO pop-up so that a field is only displayed in the pop-up when the value is not null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, I have a specific attribute (Coal Gas Sites) that is only populated for a number of the total number of sites in my feature service.&amp;nbsp; I would only like to display the Coal Gas Sites attribute in my pop-up window when the value is not null and not have it present when the value is null.&amp;nbsp; Can this be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 17:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267811#M20627</guid>
      <dc:creator>JoeStefanoni</dc:creator>
      <dc:date>2019-11-04T17:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing an AGO pop-up to exclude an attribute field if the value is null</title>
      <link>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267812#M20628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I do not believe so, it is an all or nothing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 17:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267812#M20628</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2019-11-04T17:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing an AGO pop-up to exclude an attribute field if the value is null</title>
      <link>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267813#M20629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I take it back.&amp;nbsp; Have the feature in your web map two times using filters to make it visible if that field is null and not visible if that field is null and have it turned off in the pop up if the field is null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 17:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267813#M20629</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2019-11-04T17:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing an AGO pop-up to exclude an attribute field if the value is null</title>
      <link>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267814#M20630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be accomplished with Arcade.&amp;nbsp;&amp;nbsp; Check out the following blog post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 18:45:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267814#M20630</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2019-11-04T18:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing an AGO pop-up to exclude an attribute field if the value is null</title>
      <link>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267815#M20631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe Stefanoni, GIS Specialist&lt;/P&gt;&lt;P&gt;NJDEP Site Remediation Program&lt;/P&gt;&lt;P&gt;(609) 633-1405&lt;/P&gt;&lt;P&gt;joe.stefanoni@dep.nj.gov&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 19:42:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267815#M20631</guid>
      <dc:creator>JoeStefanoni</dc:creator>
      <dc:date>2019-11-04T19:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing an AGO pop-up to exclude an attribute field if the value is null</title>
      <link>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267816#M20632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We tweaked the HTML and Arcade code that was provided via this forum and found that the following worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;STRONG style="color: #000000; font-size: medium; font-family: Verdana; "&gt;Fields to be displayed in the Pop-Up (NPL Status is the field with Null values):&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;STRONG style="color: #4c4c4c; font-size: 10.5pt; font-family: 'Arial',sans-serif; "&gt;Site ID:&lt;/STRONG&gt;&lt;SPAN style="color: #4c4c4c; font-family: 'Arial',sans-serif; font-size: 10.5pt;"&gt;&amp;nbsp;{SITE_ID}&lt;BR /&gt; &lt;STRONG&gt;PI Name:&lt;/STRONG&gt;&amp;nbsp;{PI_NAME}&lt;BR /&gt; &lt;STRONG&gt;Status:&lt;/STRONG&gt;&amp;nbsp;{STATUS}&lt;BR /&gt; &lt;STRONG&gt;NPL Status:&amp;nbsp;&lt;/STRONG&gt;{NPL_STATUS}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;STRONG style="color: #000000; font-size: medium; font-family: Verdana; "&gt;HTML Code for the Pop-Up Configuration:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;&amp;lt;b&amp;gt;Site ID:&amp;lt;/b&amp;gt; {SITE_ID}&amp;lt;br /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;&amp;lt;b&amp;gt;PI Name:&amp;lt;/b&amp;gt; {PI_NAME}&amp;lt;br /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;&amp;lt;b&amp;gt;Status:&amp;lt;/b&amp;gt; {STATUS}&amp;lt;br /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;&amp;lt;span style="display:{expression/expr0}"&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;&amp;lt;b&amp;gt;NPL Status: &amp;lt;/b&amp;gt;{NPL_STATUS}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;&amp;lt;/span&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;STRONG style="color: #000000; font-size: medium; font-family: Verdana; "&gt;Custom Attribute Expression in Arcade needed to remove both the field name and value when null : &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: medium;"&gt;IIF(isEmpty($feature.NPL_STATUS), "none", "inline")&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2019 20:04:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/customizing-an-ago-pop-up-to-exclude-an-attribute/m-p/267816#M20632</guid>
      <dc:creator>JoeStefanoni</dc:creator>
      <dc:date>2019-11-07T20:04:33Z</dc:date>
    </item>
  </channel>
</rss>

