<?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: update username when enter date in another field in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-username-when-enter-date-in-another-field/m-p/1318629#M6777</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/683129"&gt;@Ona_Tim&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;There is a difference in behavior between the map viewer and Field Maps when it comes to using the GetUser() arcade function. In order for it to work in Field Maps, try using:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;GetUser($layer).username&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I hope that helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 11:43:30 GMT</pubDate>
    <dc:creator>ChrisDunn1</dc:creator>
    <dc:date>2023-08-15T11:43:30Z</dc:date>
    <item>
      <title>update username when enter date in another field</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-username-when-enter-date-in-another-field/m-p/1318498#M6775</link>
      <description>&lt;P&gt;My field crews had me create a new layer for them for some of the mowing maintenance.&amp;nbsp; The 3 task they have in the layer is TrimmedBy, SprayedBy, and BlownOffBy with dates the task were performed. One thing that they asked for is when they enter the date the task was completed, the corresponding task( ie BlownOffBy) would auto populate with the user name.&amp;nbsp; I wrote the following code and when I run the test in the Field map forms it works but when I try it test it on the tablet it says Failed to Calculate.&amp;nbsp; What am I'm missing?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Aug 2023 21:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-username-when-enter-date-in-another-field/m-p/1318498#M6775</guid>
      <dc:creator>Ona_Tim</dc:creator>
      <dc:date>2023-08-14T21:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: update username when enter date in another field</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-username-when-enter-date-in-another-field/m-p/1318629#M6777</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/683129"&gt;@Ona_Tim&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;There is a difference in behavior between the map viewer and Field Maps when it comes to using the GetUser() arcade function. In order for it to work in Field Maps, try using:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;GetUser($layer).username&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I hope that helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 11:43:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-username-when-enter-date-in-another-field/m-p/1318629#M6777</guid>
      <dc:creator>ChrisDunn1</dc:creator>
      <dc:date>2023-08-15T11:43:30Z</dc:date>
    </item>
  </channel>
</rss>

