<?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 Field Maps GetUser() not working in mobile app in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-getuser-not-working-in-mobile-app/m-p/1356484#M7486</link>
    <description>&lt;P&gt;I have an app I built with Field Maps Designer and I would like a hidden field (UPDATED_BY) in an editable layer in the app to get automatically updated with the current user's username whenever edits are made.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;inspected&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;INSPECTION_STATUS&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;userInfo&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;GetUser&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;IIF&lt;/SPAN&gt;&lt;SPAN&gt;(!&lt;/SPAN&gt;&lt;SPAN&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;inspected&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;userInfo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;username&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;''&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;If I make an update to INSPECTION_STATUS on the Smart Form in map viewer the field UPDATED_BY is automatically populated with my username through virtue of signing into AGOL to access the app. But when I try this in the mobile Field Maps version I get the error message:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Unable to submit&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;1 hidden attribute failed&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anyone know how to fix this so it works on mobile apps?&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 04 Dec 2023 19:19:22 GMT</pubDate>
    <dc:creator>AlcoGISUser</dc:creator>
    <dc:date>2023-12-04T19:19:22Z</dc:date>
    <item>
      <title>Field Maps GetUser() not working in mobile app</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-getuser-not-working-in-mobile-app/m-p/1356484#M7486</link>
      <description>&lt;P&gt;I have an app I built with Field Maps Designer and I would like a hidden field (UPDATED_BY) in an editable layer in the app to get automatically updated with the current user's username whenever edits are made.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;inspected&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;INSPECTION_STATUS&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;userInfo&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;GetUser&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;IIF&lt;/SPAN&gt;&lt;SPAN&gt;(!&lt;/SPAN&gt;&lt;SPAN&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;inspected&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;userInfo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;username&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;''&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;If I make an update to INSPECTION_STATUS on the Smart Form in map viewer the field UPDATED_BY is automatically populated with my username through virtue of signing into AGOL to access the app. But when I try this in the mobile Field Maps version I get the error message:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Unable to submit&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;1 hidden attribute failed&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anyone know how to fix this so it works on mobile apps?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Dec 2023 19:19:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-getuser-not-working-in-mobile-app/m-p/1356484#M7486</guid>
      <dc:creator>AlcoGISUser</dc:creator>
      <dc:date>2023-12-04T19:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps GetUser() not working in mobile app</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-getuser-not-working-in-mobile-app/m-p/1356495#M7487</link>
      <description>&lt;P&gt;I think it may be this bug&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/getuser-when-offline-and-disconnected/td-p/1265027" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/getuser-when-offline-and-disconnected/td-p/1265027&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/td-p/1166748" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/td-p/1166748&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/quot-failed-to-calculate-quot-error-on-getuser/td-p/1274613" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/quot-failed-to-calculate-quot-error-on-getuser/td-p/1274613&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 19:23:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-getuser-not-working-in-mobile-app/m-p/1356495#M7487</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-12-04T19:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps GetUser() not working in mobile app</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-getuser-not-working-in-mobile-app/m-p/1356544#M7492</link>
      <description>&lt;P&gt;See this post for a possible solution:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/quot-failed-to-calculate-quot-error-on-getuser/m-p/1356023#M7482" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/quot-failed-to-calculate-quot-error-on-getuser/m-p/1356023#M7482&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 20:18:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-getuser-not-working-in-mobile-app/m-p/1356544#M7492</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-12-04T20:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps GetUser() not working in mobile app</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-getuser-not-working-in-mobile-app/m-p/1357179#M7517</link>
      <description>&lt;P&gt;Thanks. That worked but still need to test offline so the aforementioned bug may still be in play.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 23:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-getuser-not-working-in-mobile-app/m-p/1357179#M7517</guid>
      <dc:creator>AlcoGISUser</dc:creator>
      <dc:date>2023-12-05T23:47:37Z</dc:date>
    </item>
  </channel>
</rss>

