<?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: GetUser() Arcade not working in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/getuser-arcade-not-working/m-p/1354862#M56143</link>
    <description>&lt;P&gt;IsEmpty returns a boolean, but you're comparing it to the string "False". This will always return False. Use this instead&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var inspected = $feature.INSPECTION_STATUS;
var userInfo = GetUser();

IIF(!IsEmpty(inspected), userInfo.username, '');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2023 20:43:06 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2023-11-29T20:43:06Z</dc:date>
    <item>
      <title>GetUser() Arcade not working</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/getuser-arcade-not-working/m-p/1354837#M56141</link>
      <description>&lt;P&gt;Trying to calculate field in Smart Form/Field Maps with Arcade calculated expression to populate a field with the current user if another field has been populated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;'False'&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;Thought this should do it but entering a value into 'inspected' returns nothing.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Nov 2023 20:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/getuser-arcade-not-working/m-p/1354837#M56141</guid>
      <dc:creator>AlcoGISUser</dc:creator>
      <dc:date>2023-11-29T20:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser() Arcade not working</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/getuser-arcade-not-working/m-p/1354862#M56143</link>
      <description>&lt;P&gt;IsEmpty returns a boolean, but you're comparing it to the string "False". This will always return False. Use this instead&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var inspected = $feature.INSPECTION_STATUS;
var userInfo = GetUser();

IIF(!IsEmpty(inspected), userInfo.username, '');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 20:43:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/getuser-arcade-not-working/m-p/1354862#M56143</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-11-29T20:43:06Z</dc:date>
    </item>
  </channel>
</rss>

