<?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: How to edit the current date and time in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1356779#M7502</link>
    <description>&lt;P&gt;Ah no worries &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/132711"&gt;@BrianBulla&lt;/a&gt;&amp;nbsp;, just checking in case it was working for others.&lt;/P&gt;&lt;P&gt;You would expect this functionality to be there, hopefully someone from ESRI can say if it's in the pipeline.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 14:11:28 GMT</pubDate>
    <dc:creator>RachelS</dc:creator>
    <dc:date>2023-12-05T14:11:28Z</dc:date>
    <item>
      <title>How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1353004#M7441</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to have the current date in a form with also the option to click in to edit it.&lt;/P&gt;&lt;P&gt;I've been able to add the current date with now() expression however, in the form it won't allow me to click in to edit it if needed.&lt;/P&gt;&lt;P&gt;In the form properties if I tick 'Allow Editing' it says it must be disabled when there is a calculated expression.&lt;/P&gt;&lt;P&gt;Does anyone know of a way to have both, like it is in Survey123.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 16:50:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1353004#M7441</guid>
      <dc:creator>RachelS</dc:creator>
      <dc:date>2023-11-23T16:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1353154#M7445</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7812"&gt;@RachelS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you set up your date and time question without any default dates, it should automatically fill in with the current date when you click to answer the question. You will then either be able to keep the current date or change this.&lt;/P&gt;&lt;P&gt;Could you try this and let me know whether you experience the same behaviour and whether this is sufficient or you would like to achieve a different behaviour?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Issy&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 14:10:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1353154#M7445</guid>
      <dc:creator>IssyAmis</dc:creator>
      <dc:date>2023-11-24T14:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1353182#M7446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/572162"&gt;@IssyAmis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The form currently has 'No Value' in the date field and staff have to click into the field then click ok for it to input the current date.&lt;/P&gt;&lt;P&gt;I'm trying to streamline the form with as few clicks as possible.&lt;/P&gt;&lt;P&gt;In Survey123 the current date appears in the field and users don't need to click near it unless they want to change it. I was hoping to have the same in FieldMaps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every Click counts!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 16:08:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1353182#M7446</guid>
      <dc:creator>RachelS</dc:creator>
      <dc:date>2023-11-24T16:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1356547#M7493</link>
      <description>&lt;P&gt;For the date, just create an Arcade expression.&amp;nbsp; One line is all you need:&lt;/P&gt;&lt;P&gt;return Now()&lt;/P&gt;&lt;P&gt;This will return the date/time in whatever format you have the field setup for, but it will populate as soon as the user opens the form.&amp;nbsp; They can always just tap in and make any changes needed.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 20:24:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1356547#M7493</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-12-04T20:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1356704#M7497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/132711"&gt;@BrianBulla&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the problem, it won't let you '....&lt;SPAN&gt;tap in and make any changes needed' if Now() expression is added.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will it let you?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 10:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1356704#M7497</guid>
      <dc:creator>RachelS</dc:creator>
      <dc:date>2023-12-05T10:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1356743#M7498</link>
      <description>&lt;P&gt;Sorry...my bad.&amp;nbsp; I do some work in VertiGIS too, and in it's mobile app it lets you go back and edit, even with it auto-populating when you load the form.&amp;nbsp; I guess I mixed the two up.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 13:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1356743#M7498</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-12-05T13:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1356779#M7502</link>
      <description>&lt;P&gt;Ah no worries &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/132711"&gt;@BrianBulla&lt;/a&gt;&amp;nbsp;, just checking in case it was working for others.&lt;/P&gt;&lt;P&gt;You would expect this functionality to be there, hopefully someone from ESRI can say if it's in the pipeline.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 14:11:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1356779#M7502</guid>
      <dc:creator>RachelS</dc:creator>
      <dc:date>2023-12-05T14:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1696050#M12591</link>
      <description>&lt;P&gt;I'm just looking at this almost 3 years on and it still seems to be the case the default won't let the user change it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 08:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1696050#M12591</guid>
      <dc:creator>RachelS</dc:creator>
      <dc:date>2026-04-14T08:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1696156#M12594</link>
      <description>&lt;P&gt;Are you surprised??&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 15:54:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1696156#M12594</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2026-04-14T15:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1701790#M12713</link>
      <description>&lt;P&gt;Same&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 15:34:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1701790#M12713</guid>
      <dc:creator>MCostley</dc:creator>
      <dc:date>2026-05-13T15:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1711444#M12837</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7812"&gt;@RachelS&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/458966"&gt;@MCostley&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/132711"&gt;@BrianBulla&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/572162"&gt;@IssyAmis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The workaround I use is the Editing expression:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;if ($feature.event_date == null) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; return false&amp;nbsp; // Initially make the field uneditable.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;} else {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; return true // Once a value is contained, make the field editable.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I then pair this with the calculation expression:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;if ($feature.event_date == null) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; return Now() // Calculate current datetime.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;} else {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; return $feature.event_date // Preserve existing datetime.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You could probably get away with just using&lt;EM&gt; Now()&lt;/EM&gt;, though I'm verging on the side of caution as my users are likely to be editing existing records.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The combination of these works wonders in ArcGIS Field Maps, but unfortunately this will cause the field to not calculate, and not be editable within the ArcGIS Online Map Viewer. Its frustrating that both systems are designed with the same input, but actually operate in different ways. Currently, I am still trying to work out a workaround for this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The alternative I've seen is this blog post here (&lt;A href="https://community.esri.com/t5/arcgis-online-blog/how-to-override-values-for-fields-with-calculated/bc-p/1400632" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-online-blog/how-to-override-values-for-fields-with-calculated/bc-p/1400632&lt;/A&gt;), but that pollutes your schema with unnecessary fields. I'd be on the side of using this approach though if ESRI would consider adding null fields like they have done in Survey123. It would make field maps that much more powerful.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If anyone from ESRI is here, could you please consider adding a switch to arcade expressions for &lt;STRONG&gt;Run in Field Maps Only&amp;nbsp;&lt;/STRONG&gt;/ &lt;STRONG&gt;Run in Map Viewer Only&lt;/STRONG&gt; / &lt;STRONG&gt;Run in both Field Maps and Map Viewer&lt;/STRONG&gt;? I think this would greatly improve the capabilities of your system by not having expressions defined for Field Maps populate incorrectly when used within Map Viewer (a similar thing could be useful for Survey123 as well, I've had numerous calculations break between the web interface and the mobile app because of differences in how the expressions are evaluated between the two apps).&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Jul 2026 06:07:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1711444#M12837</guid>
      <dc:creator>JWatkins</dc:creator>
      <dc:date>2026-07-02T06:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the current date and time</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1711877#M12840</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7812"&gt;@RachelS&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/458966"&gt;@MCostley&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/132711"&gt;@BrianBulla&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/572162"&gt;@IssyAmis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: I worked on this a little more and I've figured out there's a difference in GlobalID format between ArcGIS Field Maps and ArcGIS Map Viewer. Below is the arcade function I've created to differentiate between the two, the only requirement of this function is that at least one layer in your map (or offline map area) already contains at least one feature and a GlobalID field.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;/*
DIFFERENTIATE IF USER IS USING ARCGIS FIELD MAPS OR ARCGIS MAP VIEWER
The below function works because:
- Field maps GlobalID's are always UPPERCASE format
- Map Viewer GlobalID's are always lowercase format
By exploiting the difference between these formats we can make an assumption as to which app is reading the arcade code.
*/

function check_app_client(layer_name, GID_field_name) {
  var temp_lyr = FeatureSetByName($map, layer_name, [GID_field_name], false); // Pull layer.
  var first_feat = First(temp_lyr); // Take the first feature.
  if (IsEmpty(first_feat)) { // Check if any features exist.
    return "Error: No features yet defined. Cannot check client."; // Return error message if no features exist.
  } else {
    if (first_feat[GID_field_name] == Upper(first_feat[GID_field_name])) { // Check if GID follows Field Maps format.
      return "Field Maps"; // Return "Field Maps"
    } else {
      return "Map Viewer"; // Otherwise return "Map Viewer"
    }
  }
}

// When defining your layer name, check the Arcade profile variables for the syntax to follow
var client = check_app_client("Some layer name", "GlobalID");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While adding this function into my code doesn't allow Map Viewer to autopopulate the event date, it at least ensures it will still be editable on Map Viewer, while also preserving the autopopulate and editable functionality within Field Maps.&lt;/P&gt;&lt;P&gt;For the purpose of autopopulating a date field you can use the example below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Editable expression&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function check_app_client(layer_name, GID_field_name) {
  var temp_lyr = FeatureSetByName($map, layer_name, [GID_field_name], false); // Pull layer.
  var first_feat = First(temp_lyr); // Take the first feature.
  if (IsEmpty(first_feat)) { // Check if any features exist.
    return "Error: No features yet defined. Cannot check client."; // Return error message if no features exist.
  } else {
    if (first_feat[GID_field_name] == Upper(first_feat[GID_field_name])) { // Check if GID follows Field Maps format.
      return "Field Maps"; // Return "Field Maps"
    } else {
      return "Map Viewer"; // Otherwise return "Map Viewer"
    }
  }
}


//Find if user is using ArcGIS Field Maps or ArcGIS Map Viewer
var client = check_app_client("Free Feed Locations", "GlobalID");

if (client == "Field Maps") { // If Field Maps, then make field not-editable until calculation has run.
  if ($feature.start_date == null) {
    return false
  } else {
    return true
  }
} else { // If not Field Maps, always make field editable.
  return true
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Calculated expression&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;function check_app_client(layer_name, GID_field_name) {
  var temp_lyr = FeatureSetByName($map, layer_name, [GID_field_name], false); // Pull layer.
  var first_feat = First(temp_lyr); // Take the first feature.
  if (IsEmpty(first_feat)) { // Check if any features exist.
    return "Error: No features yet defined. Cannot check client."; // Return error message if no features exist.
  } else {
    if (first_feat[GID_field_name] == Upper(first_feat[GID_field_name])) { // Check if GID follows Field Maps format.
      return "Field Maps"; // Return "Field Maps"
    } else {
      return "Map Viewer"; // Otherwise return "Map Viewer"
    }
  }
}


var client = check_app_client("Free Feed Locations", "GlobalID");

if (client == "Field Maps") {
  if ($feature.start_date == null) {
    return Now()
  } else {
    return $feature.start_date
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2026 06:08:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/how-to-edit-the-current-date-and-time/m-p/1711877#M12840</guid>
      <dc:creator>JWatkins</dc:creator>
      <dc:date>2026-07-02T06:08:12Z</dc:date>
    </item>
  </channel>
</rss>

