<?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>idea Global Calculated Expressions for Forms in Map Viewer / Field Maps in ArcGIS Online Ideas</title>
    <link>https://community.esri.com/t5/arcgis-online-ideas/global-calculated-expressions-for-forms-in-map/idi-p/1602116</link>
    <description>&lt;P class=""&gt;Let us mark a calculated expression as &lt;STRONG&gt;global&lt;/STRONG&gt;, and make those global expressions available in any layer within the same map.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Often when I'm configuring a new app for data collection, there are a number of tracking fields that exist in the schema across all layers in the map - things like Operator, Inspection Date, etc. These fields typically use calculated expressions to auto-fill. But right now, I'm forced to recreate the same expressions over and over&amp;nbsp;for every layer and every field.&lt;/P&gt;&lt;P&gt;In a recent app, I had 20 layers, each using the same 5 expressions in their forms. That is 100 times I had to create the same expressions, instead of simply doing it 5 times. Yes, this can be done in json, but that's not an accessible option for all.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I’m suggesting:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a&amp;nbsp;checkbox in the expression editor, allowing a user to make it a &lt;STRONG&gt;Global expression&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Global_Expression.png" style="width: 706px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129349i98A05EEDF6C9E167/image-dimensions/706x348?v=v2" width="706" height="348" role="button" title="Global_Expression.png" alt="Global_Expression.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;All global expressions would then become available for use across any layer, grouped together in the list under "Global expression."&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Global_Expression_List.png" style="width: 599px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129350i5F9C53F6E68D9ECE/image-dimensions/599x507?v=v2" width="599" height="507" role="button" title="Global_Expression_List.png" alt="Global_Expression_List.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Any edits to a global expression within any form would be universal across all layers.&lt;/LI&gt;&lt;LI&gt;If they need to tweak it for one specific layer, they can duplicate it and make changes just for that form.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;A few extra thoughts:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;If a global expression is being used by multiple layers and then gets turned off (unmarked as global), a copy of that expression could automatically be saved into each layer that was using it.&lt;BR /&gt;&lt;EM&gt;Or&lt;/EM&gt;, the system could prompt the user with a message like:&lt;BR /&gt;&lt;EM&gt;“This expression is currently shared with other layers. Would you like to copy it into those layers, or remove it from all?”&lt;/EM&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;To avoid name conflicts between global and layer-specific expressions, a special prefix could be used for global ones. For example, instead of '&lt;EM&gt;expr/agol-user'&lt;/EM&gt;, it could become '&lt;EM&gt;exprglb/agol-user'&lt;/EM&gt; or something similar. This would help keep things organized and clear in the config.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This same concept could be extended to the form&amp;nbsp;expressions for&amp;nbsp;&lt;STRONG&gt;Editable&lt;/STRONG&gt;, &lt;STRONG&gt;Required&lt;/STRONG&gt;, and &lt;STRONG&gt;Visible&lt;/STRONG&gt;, showing only the relevant global expressions for each one. Likewise, this would be super helpful for &lt;STRONG&gt;Pop-up&lt;/STRONG&gt; &lt;STRONG&gt;Attribute Expressions&amp;nbsp;&lt;/STRONG&gt;to share common pop-up configurations across all layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How this is different from saved expressions ideas:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;I’ve seen other ideas suggesting that expressions be saved and shared across the entire organization. I think that would be awesome too—I’ve definitely upvoted those. But I get that something like that would be a much bigger lift. It would probably require a whole new item type, support for sharing and importing across different apps and editors, and dealing with compatibility between schemas, types, and platforms.&lt;/P&gt;&lt;P class=""&gt;What I’m proposing here feels like a simpler solution for this specific use case. Just store the global expressions inside the map itself, and duplicate them in the JSON wherever they’re used. No need to overcomplicate it.&lt;/P&gt;&lt;P class=""&gt;This seems like a realistic middle-ground between the current manual duplication process and the more complex org-wide expression sharing ideas that have been suggested. Since Esri already supports shared expressions within a single layer, this could build on that pattern at the map level without needing entirely new content types or platform-wide changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2025 16:59:48 GMT</pubDate>
    <dc:creator>DanMakridakis</dc:creator>
    <dc:date>2025-04-03T16:59:48Z</dc:date>
    <item>
      <title>Global Calculated Expressions for Forms in Map Viewer / Field Maps</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/global-calculated-expressions-for-forms-in-map/idi-p/1602116</link>
      <description>&lt;P class=""&gt;Let us mark a calculated expression as &lt;STRONG&gt;global&lt;/STRONG&gt;, and make those global expressions available in any layer within the same map.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Often when I'm configuring a new app for data collection, there are a number of tracking fields that exist in the schema across all layers in the map - things like Operator, Inspection Date, etc. These fields typically use calculated expressions to auto-fill. But right now, I'm forced to recreate the same expressions over and over&amp;nbsp;for every layer and every field.&lt;/P&gt;&lt;P&gt;In a recent app, I had 20 layers, each using the same 5 expressions in their forms. That is 100 times I had to create the same expressions, instead of simply doing it 5 times. Yes, this can be done in json, but that's not an accessible option for all.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I’m suggesting:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a&amp;nbsp;checkbox in the expression editor, allowing a user to make it a &lt;STRONG&gt;Global expression&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Global_Expression.png" style="width: 706px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129349i98A05EEDF6C9E167/image-dimensions/706x348?v=v2" width="706" height="348" role="button" title="Global_Expression.png" alt="Global_Expression.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;All global expressions would then become available for use across any layer, grouped together in the list under "Global expression."&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Global_Expression_List.png" style="width: 599px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129350i5F9C53F6E68D9ECE/image-dimensions/599x507?v=v2" width="599" height="507" role="button" title="Global_Expression_List.png" alt="Global_Expression_List.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Any edits to a global expression within any form would be universal across all layers.&lt;/LI&gt;&lt;LI&gt;If they need to tweak it for one specific layer, they can duplicate it and make changes just for that form.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;A few extra thoughts:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;If a global expression is being used by multiple layers and then gets turned off (unmarked as global), a copy of that expression could automatically be saved into each layer that was using it.&lt;BR /&gt;&lt;EM&gt;Or&lt;/EM&gt;, the system could prompt the user with a message like:&lt;BR /&gt;&lt;EM&gt;“This expression is currently shared with other layers. Would you like to copy it into those layers, or remove it from all?”&lt;/EM&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;To avoid name conflicts between global and layer-specific expressions, a special prefix could be used for global ones. For example, instead of '&lt;EM&gt;expr/agol-user'&lt;/EM&gt;, it could become '&lt;EM&gt;exprglb/agol-user'&lt;/EM&gt; or something similar. This would help keep things organized and clear in the config.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This same concept could be extended to the form&amp;nbsp;expressions for&amp;nbsp;&lt;STRONG&gt;Editable&lt;/STRONG&gt;, &lt;STRONG&gt;Required&lt;/STRONG&gt;, and &lt;STRONG&gt;Visible&lt;/STRONG&gt;, showing only the relevant global expressions for each one. Likewise, this would be super helpful for &lt;STRONG&gt;Pop-up&lt;/STRONG&gt; &lt;STRONG&gt;Attribute Expressions&amp;nbsp;&lt;/STRONG&gt;to share common pop-up configurations across all layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How this is different from saved expressions ideas:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;I’ve seen other ideas suggesting that expressions be saved and shared across the entire organization. I think that would be awesome too—I’ve definitely upvoted those. But I get that something like that would be a much bigger lift. It would probably require a whole new item type, support for sharing and importing across different apps and editors, and dealing with compatibility between schemas, types, and platforms.&lt;/P&gt;&lt;P class=""&gt;What I’m proposing here feels like a simpler solution for this specific use case. Just store the global expressions inside the map itself, and duplicate them in the JSON wherever they’re used. No need to overcomplicate it.&lt;/P&gt;&lt;P class=""&gt;This seems like a realistic middle-ground between the current manual duplication process and the more complex org-wide expression sharing ideas that have been suggested. Since Esri already supports shared expressions within a single layer, this could build on that pattern at the map level without needing entirely new content types or platform-wide changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 16:59:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/global-calculated-expressions-for-forms-in-map/idi-p/1602116</guid>
      <dc:creator>DanMakridakis</dc:creator>
      <dc:date>2025-04-03T16:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Global Calculated Expressions for Forms in Map Viewer / Field Maps</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/global-calculated-expressions-for-forms-in-map/idc-p/1602297#M12365</link>
      <description>&lt;P&gt;Absolutely, yes please.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 12:51:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/global-calculated-expressions-for-forms-in-map/idc-p/1602297#M12365</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-04-03T12:51:14Z</dc:date>
    </item>
  </channel>
</rss>

