<?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: Not showing null in popups in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228532#M48725</link>
    <description>&lt;P&gt;How about adding an additional condition and using the COUNT Arcade function to count the number of characters from the value returned? If the value is less than 2, treat it as a null condition.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 21:15:12 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2022-11-03T21:15:12Z</dc:date>
    <item>
      <title>Not showing null in popups</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228490#M48718</link>
      <description>&lt;P&gt;Hi, I've been searching around how to do this including the following:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcade-labeling-based-on-null-or-not-null-values/m-p/1051904" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-pro-questions/arcade-labeling-based-on-null-or-not-null-values/m-p/1051904&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/arcade-cancel-new-line-in-null-field/m-p/1190256" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-online-questions/arcade-cancel-new-line-in-null-field/m-p/1190256&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/prevent-fields-with-null-values-from-showing-up-in/m-p/370113" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-online-questions/prevent-fields-with-null-values-from-showing-up-in/m-p/370113&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-documents/hide-field-in-pop-up-using-arcade/ta-p/1029496" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-online-documents/hide-field-in-pop-up-using-arcade/ta-p/1029496&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/one-pop-up-expression-for-multiple-attributes/m-p/333376" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-online-questions/one-pop-up-expression-for-multiple-attributes/m-p/333376&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My attribute expression in ArcGIS Online's new map viewer is as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var np = $feature.New_Patien
return IIf(IsEmpty(np),"none",'Phone for new patients: ' + np)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;However, it returns the 'Phone for new patients: ' even when the new patient phone field is empty.&lt;/P&gt;&lt;P&gt;Any help&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 20:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228490#M48718</guid>
      <dc:creator>MattBeyers</dc:creator>
      <dc:date>2022-11-03T20:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Not showing null in popups</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228501#M48721</link>
      <description>&lt;P&gt;I don't see anything wrong with the expression. Are you certain the fields are empty? That would be my first guess, that perhaps the field has strings which appear empty, but are a single whitespace character.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 20:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228501#M48721</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-11-03T20:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Not showing null in popups</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228531#M48724</link>
      <description>&lt;P&gt;This worked, thanks. (Where did those blank characters come from?!? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;)&lt;/P&gt;&lt;P&gt;Not certain how to get it to not put a line break. Can that be done in HTML formatting, as some of the above links suggest? I switched to a NULL from "none", as below.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var np = $feature["New_Patien"]
return IIf(np==' ',NULL,'Phone for new patients: ' + np)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 21:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228531#M48724</guid>
      <dc:creator>MattBeyers</dc:creator>
      <dc:date>2022-11-03T21:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Not showing null in popups</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228532#M48725</link>
      <description>&lt;P&gt;How about adding an additional condition and using the COUNT Arcade function to count the number of characters from the value returned? If the value is less than 2, treat it as a null condition.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 21:15:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228532#M48725</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2022-11-03T21:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Not showing null in popups</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228890#M48742</link>
      <description>&lt;P&gt;Hi, I will flag the first response as the solution. It solved the original issue. However, I am still seeing line breaks instead of null without a line break. Some of the links I referenced in the first post talk about taking care of line breaks in HTML. Does anyone have experience with that?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 20:30:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228890#M48742</guid>
      <dc:creator>MattBeyers</dc:creator>
      <dc:date>2022-11-04T20:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not showing null in popups</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228891#M48743</link>
      <description>&lt;P&gt;I'm assuming you're using the expression in a custom text element in your popup? And is this in the new map viewer, or the classic? The solutions vary depending on the context.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 20:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228891#M48743</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-11-04T20:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Not showing null in popups</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228905#M48744</link>
      <description>&lt;P&gt;Yes, a custom text element (attribute expression) and the new map viewer.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 20:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/not-showing-null-in-popups/m-p/1228905#M48744</guid>
      <dc:creator>MattBeyers</dc:creator>
      <dc:date>2022-11-04T20:51:39Z</dc:date>
    </item>
  </channel>
</rss>

