<?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 Dot notation and Square bracket notation don't work in Arcade Element in Popup in Field Maps mobile app in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/dot-notation-and-square-bracket-notation-don-t/m-p/1663425#M66964</link>
    <description>&lt;P&gt;In short - When you use either Dot Notation (var attribute = row.fieldname) or Square bracket notation (var attribute = row["fieldname']) in an Arcade element in a popup in Map Viewer, it all works great until you open the popup in the Field Maps app.&amp;nbsp; Then you get the an error like this for that element in the popup....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scott_Sambell_0-1762295690924.png" style="width: 329px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143205i08DE0B9EB6616FA1/image-dimensions/329x198?v=v2" width="329" height="198" role="button" title="Scott_Sambell_0-1762295690924.png" alt="Scott_Sambell_0-1762295690924.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What should i be using instead of dot notation or square bracket notation?&amp;nbsp; Do i have to make a dictionary first or something?&amp;nbsp; The code itself is being used in heaps of other places in the system so i know it all good, i just need to use an Arcade element for this particular element (instead of a Text element) for reasons too complex to go into right now (this version of the code works fine in the text element)&lt;/P&gt;&lt;P&gt;It seems like a crazy thing to get stumped on because dot notation is so common in all of our code.&amp;nbsp; For some reason i have never used it in an Arcade element in a Popup in Field Maps before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more context here is a small snippet of the code...&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fs = FeatureSetByName($map, "Cats registered on property",['OBJECTID','EngagementPropertiesID','CatName'],false)
var ffsp = filter(fs,'EngagementPropertiesID IN @UIDs')
var catcnt = count(ffsp)
if (catcnt == 0) 
return { 
	type : 'text', 
	text : "There are no cats"
}
else {
var firstrow = First(OrderBy(ffsp,'OBJECTID')) ;

//if i show either of these options the popup give an error in field maps...
    //var firstcat = firstrow.CatName ;
    //var firstcat = text(firstrow["CatName"]) ;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Any ideas?&amp;nbsp; I am so close on this and this is the most straight forward thing about the entire thing!&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Nov 2025 22:56:28 GMT</pubDate>
    <dc:creator>Scott_Sambell</dc:creator>
    <dc:date>2025-11-04T22:56:28Z</dc:date>
    <item>
      <title>Dot notation and Square bracket notation don't work in Arcade Element in Popup in Field Maps mobile app</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/dot-notation-and-square-bracket-notation-don-t/m-p/1663425#M66964</link>
      <description>&lt;P&gt;In short - When you use either Dot Notation (var attribute = row.fieldname) or Square bracket notation (var attribute = row["fieldname']) in an Arcade element in a popup in Map Viewer, it all works great until you open the popup in the Field Maps app.&amp;nbsp; Then you get the an error like this for that element in the popup....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scott_Sambell_0-1762295690924.png" style="width: 329px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143205i08DE0B9EB6616FA1/image-dimensions/329x198?v=v2" width="329" height="198" role="button" title="Scott_Sambell_0-1762295690924.png" alt="Scott_Sambell_0-1762295690924.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What should i be using instead of dot notation or square bracket notation?&amp;nbsp; Do i have to make a dictionary first or something?&amp;nbsp; The code itself is being used in heaps of other places in the system so i know it all good, i just need to use an Arcade element for this particular element (instead of a Text element) for reasons too complex to go into right now (this version of the code works fine in the text element)&lt;/P&gt;&lt;P&gt;It seems like a crazy thing to get stumped on because dot notation is so common in all of our code.&amp;nbsp; For some reason i have never used it in an Arcade element in a Popup in Field Maps before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more context here is a small snippet of the code...&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fs = FeatureSetByName($map, "Cats registered on property",['OBJECTID','EngagementPropertiesID','CatName'],false)
var ffsp = filter(fs,'EngagementPropertiesID IN @UIDs')
var catcnt = count(ffsp)
if (catcnt == 0) 
return { 
	type : 'text', 
	text : "There are no cats"
}
else {
var firstrow = First(OrderBy(ffsp,'OBJECTID')) ;

//if i show either of these options the popup give an error in field maps...
    //var firstcat = firstrow.CatName ;
    //var firstcat = text(firstrow["CatName"]) ;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Any ideas?&amp;nbsp; I am so close on this and this is the most straight forward thing about the entire thing!&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 22:56:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/dot-notation-and-square-bracket-notation-don-t/m-p/1663425#M66964</guid>
      <dc:creator>Scott_Sambell</dc:creator>
      <dc:date>2025-11-04T22:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dot notation and Square bracket notation don't work in Arcade Element in Popup in Field Maps mobile app</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/dot-notation-and-square-bracket-notation-don-t/m-p/1664686#M67061</link>
      <description>&lt;P&gt;FYI.&amp;nbsp; We figured it out.&amp;nbsp; If the featureset is derived from a non-spatial layer (ie a record table), dot notation and square brackets notation, inexplicably, do not work in an Arcade element.&amp;nbsp; We made a workaround by publishing the record table as a point feature layer with 150 records, all with no geometry, and it works fine.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 18:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/dot-notation-and-square-bracket-notation-don-t/m-p/1664686#M67061</guid>
      <dc:creator>Scott_Sambell</dc:creator>
      <dc:date>2025-11-10T18:20:27Z</dc:date>
    </item>
  </channel>
</rss>

