<?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: How to hide blank field in AGOL in ArcGIS Instant Apps Questions</title>
    <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786106#M238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that three statements are needed to get this done. &amp;nbsp;I went to the ArcGIS Online guys at UC and we came up with the following 3 scripts. &amp;nbsp;What I'm &amp;nbsp;looking for is a wild card to add to the $feature.[field] so the script would roll through the list of values in the popup and display only those fields which are not null. &amp;nbsp;It would seem the addition of a wildcard would allow this to happen in the $feature.field. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Creates the label&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if (IsEmpty($feature.Field1)){&lt;BR /&gt; return ""&lt;BR /&gt;} else {&lt;BR /&gt; return "Field 1"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Returns Field 1 value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if (IsEmpty($feature.Field1)){&lt;BR /&gt; return ""&lt;BR /&gt;} else {&lt;BR /&gt; return $feature.Field1&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Converts to URL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if (IsEmpty($feature.Field1)){&lt;BR /&gt; return ""&lt;BR /&gt;} else {&lt;BR /&gt; return "Field2"&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2017 18:13:41 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2017-08-02T18:13:41Z</dc:date>
    <item>
      <title>How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786101#M233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a country table where some attribute data where some of the complete data fields are applicable&amp;nbsp;and some are not so the field is blank &amp;lt;Null&amp;gt;. &amp;nbsp;For example, tick-borne encephalitis in only applicable in 10 countries so it is blank in the other 242 countries. &amp;nbsp; How to I configure a popup in AGOL to display the field (tick-born encephalitis) when data is present and not display it which the field is empty?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 15:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786101#M233</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-06-20T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786102#M234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, there is not an out-of-the-box solution for this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would applying a unique symbology to the layer help at all?&amp;nbsp; You could have one color indicate there are tick-born encephalitis, and another color indicate those that are NULL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 17:02:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786102#M234</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2017-06-20T17:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786103#M235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jake, &amp;nbsp;Thanks for the response. &amp;nbsp;I'm using multiple fields each for specific immunizations which are linked to sites like the WHO, CDC, &amp;amp; NHS for more specific details. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 17:15:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786103#M235</guid>
      <dc:creator>SteveMcCord</dc:creator>
      <dc:date>2017-06-20T17:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786104#M236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jake, &amp;nbsp;can this be done with Arcade? &amp;nbsp;If {field2} is 'null', then don't display {field1} in popup?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 17:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786104#M236</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-06-30T17:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786105#M237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just took a quick a look at this, I don't think this is possible using Arcade either.&amp;nbsp; Creating an expression for a pop-up using Arcade will add a new field to your pop-up that will display the new information (i.e. field1 + field2).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 15:34:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786105#M237</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2017-07-03T15:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786106#M238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that three statements are needed to get this done. &amp;nbsp;I went to the ArcGIS Online guys at UC and we came up with the following 3 scripts. &amp;nbsp;What I'm &amp;nbsp;looking for is a wild card to add to the $feature.[field] so the script would roll through the list of values in the popup and display only those fields which are not null. &amp;nbsp;It would seem the addition of a wildcard would allow this to happen in the $feature.field. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Creates the label&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if (IsEmpty($feature.Field1)){&lt;BR /&gt; return ""&lt;BR /&gt;} else {&lt;BR /&gt; return "Field 1"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Returns Field 1 value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if (IsEmpty($feature.Field1)){&lt;BR /&gt; return ""&lt;BR /&gt;} else {&lt;BR /&gt; return $feature.Field1&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Converts to URL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if (IsEmpty($feature.Field1)){&lt;BR /&gt; return ""&lt;BR /&gt;} else {&lt;BR /&gt; return "Field2"&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 18:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786106#M238</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-08-02T18:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786107#M239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to find a workaround that worked for me. I had a set of parks with Yes/No values on attributes like BASEBALL, FOOTBALL, etc. I wanted to show what are the available sports in every park, but without blank lines. So basically here are the steps :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Convert the Yes/No values into strings and null values with IIf statements, but add a separator ( like ; )&lt;/LI&gt;&lt;LI&gt;Concatenate into a big string&lt;/LI&gt;&lt;LI&gt;Split the big string into an array using the separators used in step 1&lt;/LI&gt;&lt;LI&gt;Count the number of sports for each park&lt;/LI&gt;&lt;LI&gt;Use some if/else if conditions to concatenate everything nicely (with new lines) for each specific number of sport.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code :&lt;/P&gt;&lt;P&gt;_________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var arr = Split(&lt;BR /&gt;Concatenate(&lt;BR /&gt;IIf($feature.BASEBALL == 'Yes', ' • Baseball;', Null),&lt;BR /&gt;IIf($feature.BASKETBALL == 'Yes', ' • Basketball;', Null),&lt;BR /&gt;IIf($feature.FOOTBALL == 'Yes', ' • Football;', Null),&lt;BR /&gt;IIf($feature.SOCCER == 'Yes', ' • Soccer;', Null),&lt;BR /&gt;IIf($feature.TENNIS == 'Yes', ' • Tennis;', Null),&lt;BR /&gt;IIf($feature.VOLLEYBALL == 'Yes', ' • Volleyball;', Null)&lt;BR /&gt;),";");&lt;/P&gt;&lt;P&gt;var number = Count(arr);&lt;/P&gt;&lt;P&gt;if (number==1){&lt;BR /&gt; return '*** No sport in this park ***';&lt;BR /&gt;} else if (&lt;SPAN&gt;number&lt;/SPAN&gt;==2){&lt;BR /&gt; return Text(Concatenate((arr[0]) + TextFormatting.NewLine + (arr[1])));&lt;BR /&gt;} else if (&lt;SPAN&gt;number&lt;/SPAN&gt;==3){&lt;BR /&gt; return Text(Concatenate((arr[0]) + TextFormatting.NewLine + (arr[1]) + TextFormatting.NewLine + (arr[2])));&lt;BR /&gt;} else if (&lt;SPAN&gt;number&lt;/SPAN&gt;==4){&lt;BR /&gt; return&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;} else {&lt;BR /&gt; return 'other';&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 19:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786107#M239</guid>
      <dc:creator>GeoffroyRicher-Lalonde1</dc:creator>
      <dc:date>2019-08-13T19:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786108#M240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, symbology is not the issue as the null values should not be shown. I think it can be done in arcade but I’m not sure how to do it with 20 variables in arcade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;Get Outlook&amp;lt;https://aka.ms/sdimjr&amp;gt; for iOS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 11:14:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786108#M240</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-04-30T11:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786109#M241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/106831" target="_blank"&gt;Steve McCord&lt;/A&gt;‌ you can do this using a Custom Attribute pop-up.&amp;nbsp; Below are the steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Choose &lt;STRONG&gt;A custom attribute display&lt;/STRONG&gt; in the pop-up&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/490488_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Click the &lt;STRONG&gt;View HTML Source&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/490489_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Configure a&amp;nbsp;&lt;STRONG&gt;span&lt;/STRONG&gt; HTML element before any line that you do not want to display if it's NULL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Address:&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;  {FULLADDR}&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;br&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;span&lt;/SPAN&gt;&lt;SPAN class="style-attr language-css token"&gt;&lt;SPAN class="attr-name token"&gt; &lt;SPAN class="attr-name token"&gt;style&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;="&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="selector token"&gt;display:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;expression/expr2&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Value:&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;  {PREDISVAL}
&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;span&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update the &lt;STRONG&gt;expresssion/expr2&lt;/STRONG&gt; with the appropriate Attribute Expression&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/490490_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; The Arcade for the Attribute Expression would be:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;IIF&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;isEmpty&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PREDISVAL&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"None"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"inline"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will then hide the field in the pop-up when the value is NULL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/490491_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if there is a way to simplify this for 20 different fields, but this should be a start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786109#M241</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-12T08:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786110#M242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Jake.  Let me work through this and see how it functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 11:55:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786110#M242</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-04-30T11:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786111#M243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the following for hiding non-null fields in Popups:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; skipFields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Creator'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'CreationDate'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Editor'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'EditDate'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'OBJECTID'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'GlobalID'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; allFields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; skip &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; False&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; j &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; skipFields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Text&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Text&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;skipFields&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;j&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            skip &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; True&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;isEmpty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="token function"&gt;Console&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Null Field: '&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;skip&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="token function"&gt;Console&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Skipping Field: '&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="token function"&gt;Console&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Including Field: '&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        allFields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;allFields&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Upper&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; TextFormatting&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;NewLine&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Text&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; TextFormatting&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;NewLine&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; TextFormatting&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;NewLine&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="token function"&gt;Console&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;allFields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; allFields&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It returns a basic output like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="493221" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/493221_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does restrict the formatting of elements, but saves a lot of configuration as it can be used against any layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my testing it does not display in Collector. I'm guessing it's because of the $feature reference, but haven't had a chance to look into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are worried about aesthetics, check out &lt;A _jive_internal="true" href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2017/07/18/conditional-field-display-with-arcade-in-pop-ups" target="_blank"&gt;this blog&lt;/A&gt;. More work, but less raw!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:57:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786111#M243</guid>
      <dc:creator>MikieKelly</dc:creator>
      <dc:date>2021-12-12T08:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786112#M244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;I have a related question, this worked for me&amp;nbsp;but one of my expressions is testing a Date field. It is configured as 12/12/20 in the configure attributes list, but the arcade expression changes the date format to this very lengthy format (first snip). I can't figure out why. Below is the IIf expression. Any ideas?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deb&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="497985" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/497985_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Arcade snip&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="497986" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/497986_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 14:07:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786112#M244</guid>
      <dc:creator>DeborahCohen2</dc:creator>
      <dc:date>2020-06-26T14:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786113#M245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/411794"&gt;Deborah Cohen&lt;/A&gt;‌ you can try returning the date as a string instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var editDate = Date($feature["last_edited_date"])&lt;BR /&gt;var stringDate = Text(editDate, 'MMMM, d, Y h: m :s')&lt;BR /&gt;return stringDate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 23:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/786113#M245</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2020-07-20T23:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide blank field in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/1143023#M1081</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I'm a beginner with Arcade, im trying to hide a blank fields on popups of a related table on AGOL, to visualize them on "details" - dashboad widget I would appreciate a lot your help and tips! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 13:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-instant-apps-questions/how-to-hide-blank-field-in-agol/m-p/1143023#M1081</guid>
      <dc:creator>BrunoRochaPA</dc:creator>
      <dc:date>2022-02-11T13:17:01Z</dc:date>
    </item>
  </channel>
</rss>

