<?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: Can I eliminate a field with a specific string using Arcade in my pop-up? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/can-i-eliminate-a-field-with-a-specific-string/m-p/1097806#M42151</link>
    <description>&lt;P&gt;Code looks fine,&amp;nbsp; I might take a wild guess that you have a trailing space (which makes sense if there's some concatenation happening previously to generate that string), so maybe test for that.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;'( ) - '&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 21:11:27 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2021-09-13T21:11:27Z</dc:date>
    <item>
      <title>Can I eliminate a field with a specific string using Arcade in my pop-up?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-i-eliminate-a-field-with-a-specific-string/m-p/1097751#M42149</link>
      <description>&lt;P&gt;We currently have a feature that we update monthly for the public as it pertains to certain facilities. In that feature class there is a field called "Fax Phone". In that field it contains both fax numbers and a string '&lt;STRONG&gt;( ) -&lt;/STRONG&gt;' if a location does not contain an actual fax number (instead of it being empty it contains '&lt;STRONG&gt; ( ) -&lt;/STRONG&gt;').&lt;/P&gt;&lt;P&gt;My goal is to create an expression that states: If the fax phone field equals '&lt;STRONG&gt;( ) -&lt;/STRONG&gt;' then show up blank. If it does not equal ' &lt;STRONG&gt;( ) -&lt;/STRONG&gt;' show the fax phone number.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IIf($feature.FaxPhone == '( ) -', '', $feature.FaxPhone)&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is my current expression but it does not seem to work properly because it still showcases the '( ) -' on my pop-up (image below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has some insight I will greatly appreciate it!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADHSGIS_Admin_0-1631557631413.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22878iBF2EAB5717BB6135/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADHSGIS_Admin_0-1631557631413.png" alt="ADHSGIS_Admin_0-1631557631413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Josue&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Sep 2021 18:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-i-eliminate-a-field-with-a-specific-string/m-p/1097751#M42149</guid>
      <dc:creator>ADHSGIS_Admin</dc:creator>
      <dc:date>2021-09-13T18:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I eliminate a field with a specific string using Arcade in my pop-up?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-i-eliminate-a-field-with-a-specific-string/m-p/1097806#M42151</link>
      <description>&lt;P&gt;Code looks fine,&amp;nbsp; I might take a wild guess that you have a trailing space (which makes sense if there's some concatenation happening previously to generate that string), so maybe test for that.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;'( ) - '&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 21:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-i-eliminate-a-field-with-a-specific-string/m-p/1097806#M42151</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-09-13T21:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can I eliminate a field with a specific string using Arcade in my pop-up?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-i-eliminate-a-field-with-a-specific-string/m-p/1097943#M42154</link>
      <description>&lt;P&gt;Building on what David suggested:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;IIf(Replace($feature.FaxPhone, ' ', '') == '()-', '', $feature.FaxPhone)  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, make sure you're actually showing the expression in the popup, not the field.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 08:26:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-i-eliminate-a-field-with-a-specific-string/m-p/1097943#M42154</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-09-14T08:26:09Z</dc:date>
    </item>
  </channel>
</rss>

