<?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: Labels not displaying on point layer with certain Display filters in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/labels-not-displaying-on-point-layer-with-certain/m-p/1023209#M382</link>
    <description>&lt;P&gt;Update...&lt;/P&gt;&lt;P&gt;adding 2 expressions to the filter removes the labels in the mobile app no matter what the expressions are.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2021 21:21:16 GMT</pubDate>
    <dc:creator>AGMAD</dc:creator>
    <dc:date>2021-02-03T21:21:16Z</dc:date>
    <item>
      <title>Labels not displaying on point layer with certain Display filters</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/labels-not-displaying-on-point-layer-with-certain/m-p/1023156#M381</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;I am having an issue labeling a point feature I have on a web map that is being used for ArcGIS Field Maps on Ipads.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;The Layer being labeled called, PointTreatment, has data from 2020 and will have data from 2021 added throughout the year. I have this arcade expression used to label the feature:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;/// last updated Feb 3 2021&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;/// added code for labeling treatments in 2020&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;/// labeling for days old treatment, sample&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;/// set up variables&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var Acres = $feature.Acres&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var LBS = $feature.AmountUsed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var Product = DomainName($feature,"Product") + ', '&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;/// if else statements&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;if($feature.Date == today()){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var age =' today';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else if(Year($feature.Date) == 2020){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var age = ' 2020'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else var age = text(round(datediff(now(), $feature.Date, 'days'),0) + ' days ago on ' + text(date($feature.date),'ddd, ' + 'MMM ' + 'D'));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;/// 2020 labels&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;if( age == ' 2020' &amp;amp;&amp;amp; isEmpty($feature.AmountUsed)){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var status = 'Sample taken ' + Text(Date($feature.Date), 'MMM') + ' 2020'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else if( age == ' 2020'){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var status = Acres + ' acres in ' + Text(Date($feature.Date), 'MMM') + ' 2020'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;/// New Labels&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else if($feature.Product == 'Natular G (EPA#8329-80)' &amp;amp;&amp;amp; (datediff(now(), $feature.Date, 'days'))&amp;lt;14){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var status = LBS + ' LBS of ' + Product + age;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else if($feature.Product == 'Vectobac GR (EPA#73049-486)' &amp;amp;&amp;amp; (datediff(now(), $feature.Date, 'days'))&amp;lt;14){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var status = LBS + ' LBS of ' + Product + age;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else if($feature.Product == 'Vectobac 12AS (EPA#73049-38)' &amp;amp;&amp;amp; (datediff(now(), $feature.Date, 'days'))&amp;lt;14){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var status = LBS + ' LBS of ' + Product + age;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else if($feature.Product == 'Kontrol Oil (EPA#73748-10)' &amp;amp;&amp;amp; (datediff(now(), $feature.Date, 'days'))&amp;lt;7){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var status = LBS + ' LBS of ' + Product + age;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else if($feature.Product == 'Abate 1% (EPA#8329-17)' &amp;amp;&amp;amp; (datediff(now(), $feature.Date, 'days'))&amp;lt;14){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var status = LBS + ' LBS of ' + Product + age;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else if($feature.Product == 'VectoMax FG (EPA#73049-429)' &amp;amp;&amp;amp; (datediff(now(), $feature.Date, 'days'))&amp;lt;29){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var status = LBS + ' LBS of ' + Product + age;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else if($feature.Product == 'Duplex G (EPA#89459-93)' &amp;amp;&amp;amp; (datediff(now(), $feature.Date, 'days'))&amp;lt;33){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var status = LBS + ' LBS of ' + Product + age;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else if($feature.Product == 'Natular G30 (EPA#8329-83)' &amp;amp;&amp;amp; (datediff(now(), $feature.Date, 'days'))&amp;lt;34){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var status = LBS + ' LBS of ' + Product + age;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;/// must include final else statement, or it will trigger a runtime error for var status&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;else{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;var status = ''&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;return status&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;After I add this expression everything labels perfectly and looks like this...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="AB53D837-1409-40AC-B0DC-F714FCE9B7FB.png" style="width: 749px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5243iF8B15F7ADEF5B17F/image-size/large?v=v2&amp;amp;px=999" role="button" title="AB53D837-1409-40AC-B0DC-F714FCE9B7FB.png" alt="AB53D837-1409-40AC-B0DC-F714FCE9B7FB.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;My next step is adding a filter that will only display data that is dated this year or march of the previous year. here is a screencap of the filter....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5244i4EEEDDDFE65B10BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;After that filter is added the labeling on Field Maps and Collector disappears but it does not disappear on the AGOL Web Map.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;here are screencaps from fieldmaps with the labeling gone after applying the filter..&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2B0D915D-8EF4-445B-BCDA-42BB4172023C.png" style="width: 749px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5245iE76B82C3CF8C263B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2B0D915D-8EF4-445B-BCDA-42BB4172023C.png" alt="2B0D915D-8EF4-445B-BCDA-42BB4172023C.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;and screencap from agol with the labeling still displaying after applying the filter...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled2.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5246i5282EA7F845FAA3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;does anyone know why this is happening?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;I feel like it is a bug on the esri's end, but if anyone has any tips let me know. Thanks.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 19:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/labels-not-displaying-on-point-layer-with-certain/m-p/1023156#M381</guid>
      <dc:creator>AGMAD</dc:creator>
      <dc:date>2021-02-03T19:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not displaying on point layer with certain Display filters</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/labels-not-displaying-on-point-layer-with-certain/m-p/1023209#M382</link>
      <description>&lt;P&gt;Update...&lt;/P&gt;&lt;P&gt;adding 2 expressions to the filter removes the labels in the mobile app no matter what the expressions are.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 21:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/labels-not-displaying-on-point-layer-with-certain/m-p/1023209#M382</guid>
      <dc:creator>AGMAD</dc:creator>
      <dc:date>2021-02-03T21:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not displaying on point layer with certain Display filters</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/labels-not-displaying-on-point-layer-with-certain/m-p/1023210#M383</link>
      <description>&lt;P&gt;Update...&lt;/P&gt;&lt;P&gt;Also no matter what the label expression is the filter removes the labels&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 21:28:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/labels-not-displaying-on-point-layer-with-certain/m-p/1023210#M383</guid>
      <dc:creator>AGMAD</dc:creator>
      <dc:date>2021-02-03T21:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not displaying on point layer with certain Display filters</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/labels-not-displaying-on-point-layer-with-certain/m-p/1029200#M471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/66358"&gt;@AGMAD&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Sorry that you are having this issue. Do you see the same issue on ArcGIS Online in Web Map Viewer Beta?&lt;/P&gt;&lt;P&gt;Alix&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 17:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/labels-not-displaying-on-point-layer-with-certain/m-p/1029200#M471</guid>
      <dc:creator>AlixPower</dc:creator>
      <dc:date>2021-02-22T17:13:05Z</dc:date>
    </item>
  </channel>
</rss>

