<?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: Arcade: hide symbol after closing date in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-hide-symbol-after-closing-date/m-p/1635390#M65697</link>
    <description>&lt;P&gt;Glad to help. Don't forget to check the Accept as Solution box.&lt;/P&gt;&lt;P&gt;The reason it may not be showing all of them is that the legends generated by Arcade will only give you the values that exist. If your data doesn't contain the values for each of the possibilities, you'll have to use dummy data to build it. Having said that, I don't see how you'll every get "Over" returned. If you changed line 13 to use &amp;amp;&amp;amp; instead of ||, then you can get "Over"&lt;/P&gt;&lt;P&gt;You can simplify your expression also. In line 14, you don't need to check whether difDays is less than 15 since that was checked in line 13&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jul 2025 12:57:48 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2025-07-23T12:57:48Z</dc:date>
    <item>
      <title>Arcade: hide symbol after closing date</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-hide-symbol-after-closing-date/m-p/1635145#M65671</link>
      <description>&lt;P&gt;I have a Date only field called closingDate. How would I use that field in a Styles expression as a means to hide the symbol on the map when that date is over?&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Variable containing closing day of event
var closingDay = $feature.closingDate

// Variable containing today's date in date only format 
var todaysDate = DateOnly()

if (closingDay &amp;lt; todaysDate) {
    return null;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Jul 2025 19:52:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-hide-symbol-after-closing-date/m-p/1635145#M65671</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2025-07-22T19:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: hide symbol after closing date</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-hide-symbol-after-closing-date/m-p/1635149#M65672</link>
      <description>&lt;P&gt;You can use this expression&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;iif ($feature.closingDate &amp;lt; DateOnly(), "No", "Yes")&lt;/LI-CODE&gt;&lt;P&gt;And in the Styles dialog, move the "No" entry to the Other category and make sure it's turned off&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6375982914112w758h540r147" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6375982914112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6375982914112w758h540r147');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6375982914112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 20:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-hide-symbol-after-closing-date/m-p/1635149#M65672</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-07-22T20:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: hide symbol after closing date</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-hide-symbol-after-closing-date/m-p/1635193#M65675</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;,&amp;nbsp;that works great.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, could you use When() and DateDiff functions? This is one way I've tried it, but it's not showing all of them.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Variables containing the opening and closing days of the attraction 
var openingDay = $feature.Dateof
var closingDay = $feature.closingDate

// Variable containing today's date in date only format 
var todaysDate = DateOnly()

// Calculate the number of days between today and opening day 
var difDays = DateDiff(openingDay, todaysDate, 'days') //openingDay is a Date only field with opening dates

// Categorize feature based on date comparisons 
When( 
  difDays &amp;gt;= 14 || todaysDate &amp;gt; closingDay, 'Closed', 
  difDays &amp;gt; 0 &amp;amp;&amp;amp; difDays &amp;lt; 15,'Opening soon',
  todaysDate &amp;gt; closingDay, 'Over',
  'Open' 
  ); &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Jul 2025 21:20:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-hide-symbol-after-closing-date/m-p/1635193#M65675</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2025-07-22T21:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: hide symbol after closing date</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-hide-symbol-after-closing-date/m-p/1635390#M65697</link>
      <description>&lt;P&gt;Glad to help. Don't forget to check the Accept as Solution box.&lt;/P&gt;&lt;P&gt;The reason it may not be showing all of them is that the legends generated by Arcade will only give you the values that exist. If your data doesn't contain the values for each of the possibilities, you'll have to use dummy data to build it. Having said that, I don't see how you'll every get "Over" returned. If you changed line 13 to use &amp;amp;&amp;amp; instead of ||, then you can get "Over"&lt;/P&gt;&lt;P&gt;You can simplify your expression also. In line 14, you don't need to check whether difDays is less than 15 since that was checked in line 13&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 12:57:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-hide-symbol-after-closing-date/m-p/1635390#M65697</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-07-23T12:57:48Z</dc:date>
    </item>
  </channel>
</rss>

