<?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 POPULATING DATE USING ARCADE in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/populating-date-using-arcade/m-p/686746#M34155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Using ArcGISOnline and arcade I am wanting to populate a date field by adding 10 years to an Install Date field that is currently empty but will be filled out in the field using Collector for ArcGIS. The field I am trying to populate will be a WARRANTY_DATE field. The goal is for the user in the field to select and fill out the install date and it generates the warranty date then. Is this possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2019 02:32:32 GMT</pubDate>
    <dc:creator>JordanHolt</dc:creator>
    <dc:date>2019-04-12T02:32:32Z</dc:date>
    <item>
      <title>POPULATING DATE USING ARCADE</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/populating-date-using-arcade/m-p/686746#M34155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Using ArcGISOnline and arcade I am wanting to populate a date field by adding 10 years to an Install Date field that is currently empty but will be filled out in the field using Collector for ArcGIS. The field I am trying to populate will be a WARRANTY_DATE field. The goal is for the user in the field to select and fill out the install date and it generates the warranty date then. Is this possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 02:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/populating-date-using-arcade/m-p/686746#M34155</guid>
      <dc:creator>JordanHolt</dc:creator>
      <dc:date>2019-04-12T02:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: POPULATING DATE USING ARCADE</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/populating-date-using-arcade/m-p/686747#M34156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your case your data is dynamic since it is edited in the field. You can create an Arcade expression in the pop-up window of the map used in Collector and it will show up for the field worker and any app pointing to the same information. It is however a “virtual field” (it does not exist in the schema of the data).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use a field calculation in ArcGIS Online at the end of the field work to fill a real field with the warranty date. This will be a static result and will not update when the data is updated. If you would have access to ArcGIS Enterprise 10.6.1 or later, you would be able to define an attribute rule that is triggered by any relevant change in the data (creating a new feature, changing the install date on an existing one, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don’t have access to Enterprise, try and define the Arcade expression in the pop-up of the layer in the web map used for Collector like this:&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; install_date &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LASTUPDATE&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;// should point to your install date field&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; warranty_date &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DateAdd&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;install_date&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"years"&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;return&lt;/SPAN&gt; warranty_date&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/populating-date-using-arcade/m-p/686747#M34156</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T04:53:23Z</dc:date>
    </item>
  </channel>
</rss>

