<?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: Auto populate Date only once on forms that are edited multiple times in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1635087#M11162</link>
    <description>&lt;P&gt;Is there a way to do this but with the creator field? I use offline maps in field maps.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jul 2025 17:13:35 GMT</pubDate>
    <dc:creator>Krocha</dc:creator>
    <dc:date>2025-07-22T17:13:35Z</dc:date>
    <item>
      <title>Auto populate Date only once on forms that are edited multiple times</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1510620#M9142</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I have a form that is edited by multiple users at various dates.&amp;nbsp; There are 3 groups and each group has a date field that needs to be populated.&lt;/P&gt;&lt;P&gt;I'd like the dates to be autopopulated, and I've used date() function for all three fields, however, if the form is opened again at another date, all the date fields from previous entries are changed the current date.&lt;/P&gt;&lt;P&gt;I need to retain the original dates - is there are way to do this?&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Lindsay&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 14:40:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1510620#M9142</guid>
      <dc:creator>LindsayLewin</dc:creator>
      <dc:date>2024-07-26T14:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate Date only once on forms that are edited multiple times</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1510704#M9144</link>
      <description>&lt;P&gt;Hi Lindsay,&lt;/P&gt;&lt;P&gt;Good afternoon. You can use an Arcade expression on that field. I've included a sample below. You will need to update the name of your date field. This will capture the date when a new feature is added, but it will remain read only after that.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if ($editcontext.editType == "INSERT") {
   var originalDate = Today();

   //keep original date
   return originalDate;
} else {
  return $originalFeature.yourdatefield;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 26 Jul 2024 16:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1510704#M9144</guid>
      <dc:creator>KerriRasmussen</dc:creator>
      <dc:date>2024-07-26T16:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate Date only once on forms that are edited multiple times</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1510800#M9145</link>
      <description>&lt;P&gt;Worked like a charm!&amp;nbsp; Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 18:44:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1510800#M9145</guid>
      <dc:creator>LindsayLewin</dc:creator>
      <dc:date>2024-07-26T18:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate Date only once on forms that are edited multiple times</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1511118#M9149</link>
      <description>&lt;P&gt;Hey Kerry - after adding some new data - with no dates recorded as of yet - i see that there is an issue with the code capturing that first date submission.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the field is null to begin with I need the user to submit that, then after retain that specific value throughout the lifecycle of the inspection.&lt;/P&gt;&lt;P&gt;I've tried to add a date() at the beginning of this expression with no luck - thoughts?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;date&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$editcontext&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;editType&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"INSERT"&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;originalDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Today&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;//keep original date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;originalDate&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;$originalFeature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SeedDate&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2024 03:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1511118#M9149</guid>
      <dc:creator>LindsayLewin</dc:creator>
      <dc:date>2024-07-28T03:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate Date only once on forms that are edited multiple times</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1511119#M9150</link>
      <description>&lt;P&gt;SO i figured this out - on features that are already exisiting, where the user is no actually creating new geometry - UPDATE is used instead of INSERT.&lt;/P&gt;&lt;P&gt;Thanks for getting me started on that one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;$editcontext&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;editType&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;==&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"UPDATE"&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;originalDate&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Today&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;//keep original date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;originalDate&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;$originalFeature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SeedDate&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lindsay.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 28 Jul 2024 03:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1511119#M9150</guid>
      <dc:creator>LindsayLewin</dc:creator>
      <dc:date>2024-07-28T03:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate Date only once on forms that are edited multiple times</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1635087#M11162</link>
      <description>&lt;P&gt;Is there a way to do this but with the creator field? I use offline maps in field maps.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 17:13:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1635087#M11162</guid>
      <dc:creator>Krocha</dc:creator>
      <dc:date>2025-07-22T17:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate Date only once on forms that are edited multiple times</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1635418#M11170</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/613818"&gt;@Krocha&lt;/a&gt;&amp;nbsp;the creator field is a system generated field and it will only populate when the feature is first created, meaning it won't update. The editor field will update when the feature is updated with the name of the latest editor (this is assuming that editor tracking is turned on for that feature). Is that what you were looking to do or did you have another workflow in mind?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 13:53:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1635418#M11170</guid>
      <dc:creator>KerriRasmussen</dc:creator>
      <dc:date>2025-07-23T13:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate Date only once on forms that are edited multiple times</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1640118#M11234</link>
      <description>&lt;P&gt;I was thinking i would have a separate field for who created the feature point (this is in case i have to re-publish the feature layer). It will grab the username by calculation in the forms but i wanted it to display as the full name of the user instead of the username. I believe i have tried but this does not work for offline maps.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 18:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-date-only-once-on-forms-that-are/m-p/1640118#M11234</guid>
      <dc:creator>Krocha</dc:creator>
      <dc:date>2025-08-07T18:11:49Z</dc:date>
    </item>
  </channel>
</rss>

