<?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 Allow Editing on Fields with Arcade Calculated Expressions in ArcGIS Field Maps Ideas</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idi-p/1321452</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Idea&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Allow fields to remain editable when an Arcade Expression is used to calculate them.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reasoning&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Calculated expressions are great at improving efficiency in field operations, but in advanced use cases they don't always work the way I expect them to.&amp;nbsp; Some of it may be user error on my part, but because I can't rely on my expressions, I generally end up not using them.&amp;nbsp; Allowing the field to remain editable would increase usability in the shoulder cases where my expressions fail to return expected results.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I provide GIS support for a forest monitoring crew.&amp;nbsp; The crew maps trees in plots and fills out a bunch of information about each tree.&amp;nbsp; To keep track of trees over time, each tree gets a unique identifier.&amp;nbsp; I wrote an Arcade expression to create the tree ID on the fly whenever a new tree is mapped.&amp;nbsp; The expression uses a geometry intersect to determine which plot the tree is in.&amp;nbsp; Then it counts all the existing trees in that plot and adds 1 to the number of existing trees.&amp;nbsp; Finally it returns the plot and tree number in a nicely configured format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works like a charm, when it works.&amp;nbsp; Unfortunately, it doesn't work when the accuracy threshold for data collection hasn't been met.&amp;nbsp; In these cases, no point exists to do the geometry intersect, but arcade still proceeds with the calculation.&amp;nbsp; It looks like it errantly picks the first plot in the list by default and returns me a blatantly wrong ID.&amp;nbsp; Would be great if I could go back in and manually input the ID in these cases.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 23:25:09 GMT</pubDate>
    <dc:creator>JoshuaFlickinger</dc:creator>
    <dc:date>2023-08-22T23:25:09Z</dc:date>
    <item>
      <title>Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idi-p/1321452</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Idea&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Allow fields to remain editable when an Arcade Expression is used to calculate them.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reasoning&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Calculated expressions are great at improving efficiency in field operations, but in advanced use cases they don't always work the way I expect them to.&amp;nbsp; Some of it may be user error on my part, but because I can't rely on my expressions, I generally end up not using them.&amp;nbsp; Allowing the field to remain editable would increase usability in the shoulder cases where my expressions fail to return expected results.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I provide GIS support for a forest monitoring crew.&amp;nbsp; The crew maps trees in plots and fills out a bunch of information about each tree.&amp;nbsp; To keep track of trees over time, each tree gets a unique identifier.&amp;nbsp; I wrote an Arcade expression to create the tree ID on the fly whenever a new tree is mapped.&amp;nbsp; The expression uses a geometry intersect to determine which plot the tree is in.&amp;nbsp; Then it counts all the existing trees in that plot and adds 1 to the number of existing trees.&amp;nbsp; Finally it returns the plot and tree number in a nicely configured format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works like a charm, when it works.&amp;nbsp; Unfortunately, it doesn't work when the accuracy threshold for data collection hasn't been met.&amp;nbsp; In these cases, no point exists to do the geometry intersect, but arcade still proceeds with the calculation.&amp;nbsp; It looks like it errantly picks the first plot in the list by default and returns me a blatantly wrong ID.&amp;nbsp; Would be great if I could go back in and manually input the ID in these cases.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 23:25:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idi-p/1321452</guid>
      <dc:creator>JoshuaFlickinger</dc:creator>
      <dc:date>2023-08-22T23:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1321464#M1401</link>
      <description>&lt;P&gt;I agree that sometimes it would be useful to be able to edit a pre-calculated value. In our use cases it would be that the field returns the users Name or ID, but sometimes they might be filling it out on behalf of someone else and would need to change the name to someone elses.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/291845"&gt;@JoshuaFlickinger&lt;/a&gt;&amp;nbsp;in your current situation where the accuracy isn't good enough to make the intersection - have you considered adding a buffer to the intersection? It would act like adding a search distance. You can also add an IIF statement to return "Unknown" instead of the first random value if it fails to find a search. The buffer would be useful if there's enough space between plots to ensure that you can still find the one you need within a reasonable tolerance. I've listed a code I use below for you to review.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var BufferedFeature = Buffer($feature, 20, 'meters') //Adds 20 metre buffer to the feature geometry before intersecting
var intersectLayer1 = Intersects(FeatureSetByName($map, 'FPC Plantations'),BufferedFeature) //Searches this layer 1st. 
var intersectLayer2 = Intersects(FeatureSetByName($map, 'Planned Establishment Areas'),BufferedFeature) //If no value found above, searches this layer

//Search of Layer 1 - returns value in field "Name" - if empty, then runs search on Layer 2
for(var f in intersectLayer1) {
    if(!IsEmpty(f.Name)) {
        return f.name
    }
}
//Search of Layer 2 - returns value in field "Name" - if empty, then returns "Unknown"
for(var f in intersectLayer2) {
    if(!IsEmpty(f.Name)) {
        return f.Name
    }
}
return "Unknown"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 00:20:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1321464#M1401</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2023-08-23T00:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1321577#M1403</link>
      <description>&lt;P&gt;This is absolutely needed. 90% of the time the calculated value may be the correct one, but there is always an exception that we need to account for. My team has been unable to take advantage of this functionality because there is not a single use case where we would want to force a value on someone.&lt;/P&gt;&lt;P&gt;May be a duplicate of this idea:&amp;nbsp;&lt;A title="Calculated Default Values" href="https://community.esri.com/t5/arcgis-field-maps-ideas/calculated-default-values/idi-p/1168326#comments" target="_blank" rel="noopener"&gt;Calculated Default Values&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:08:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1321577#M1403</guid>
      <dc:creator>lah</dc:creator>
      <dc:date>2023-08-23T13:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1328336#M1431</link>
      <description>&lt;P&gt;Being able to edit calculated fields is the very first problem we hit when trying to implement Field Maps.&amp;nbsp; As others have said, calculated fields are correct for about 90% of the time, but sometimes you need to be able to edit the calculated value.&amp;nbsp; I really don't see why a field can't be calculated, and then editable if the value is not correct.&lt;/P&gt;&lt;P&gt;It would be awesome if this could be implemented.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 15:47:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1328336#M1431</guid>
      <dc:creator>MappyIan</dc:creator>
      <dc:date>2023-09-13T15:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1328579#M1432</link>
      <description>&lt;P&gt;We experienced a similar issue with our field season using a field&amp;nbsp;expression in our ArcGIS Field Maps app. Our geologists wanted the locality number to be filled out in a sequence automatically based on the first locality they make, so they don't have to remember each new locality number. In total they usually collect over 2700 localities in a field season.&lt;/P&gt;&lt;P&gt;We use a simple field expression from two fields to get a sequential locality number and a unique locality name, but we discovered that when our field geologists edit their collected localities, e.g., adds a new photo attachment or update their field notes, the sequence&amp;nbsp;number is also updated in the geodatabase, which is very unfortunate. We are debugging our code now to see how we can prevent that, but our field geologists want to be able to also edit/correct the calculated field value them self if needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//Create a sequential locality number
var previousRecord = FeatureSetByName($map, "Locality", ['LocalityNo'], false);
var lastRecord = First(Orderby(previousRecord,'LocalityNo DESC'))
if (Count(previousRecord) == 0) {
    return "1"
} else {
    return lastRecord.LocalityNo + 1
}

//Create a unique concatenate locality name with locality number
var createuser = split(GetUser($layer).username,'_')
var createyear = Year(Now())
var locid = $feature["LocalityNo"]
Concatenate(createyear,createuser[0],locid)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 08:19:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1328579#M1432</guid>
      <dc:creator>cbp-geus</dc:creator>
      <dc:date>2024-01-25T08:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1369329#M1558</link>
      <description>&lt;P&gt;We really need this functionality, too. There have been so many times when I wanted to add field calculations to make data collection fast and easy 95% of the time but can't because of the 5% of cases when field crews would need to edit the value.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 00:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1369329#M1558</guid>
      <dc:creator>HollyTorpey_LSA</dc:creator>
      <dc:date>2024-01-12T00:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1380403#M1588</link>
      <description>&lt;P&gt;This would also be helpful for my workflow where we use Arcade to fill in the nearest feature but sometimes it pull the wrong feature value if there are many features close to the collection point. The user would need to be able to correct the parent value. Bonus point if related records from the corrected feature reautopopulated/corrected the related feature values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 16:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1380403#M1588</guid>
      <dc:creator>gis_user_ca</dc:creator>
      <dc:date>2024-02-09T16:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1387745#M1611</link>
      <description>&lt;P&gt;This functionality would be very valuable in our workflows. I want to make forms that are easier for users to use: that prepopulate data when appropriate, but also allow the user to change that value manually if they want/need to. A specific example would be with tree inspections. Lets say last year they identified a bug problem. I want to pull the note from last year's inspection about the bugs into the new inspection, this way the user doesn't need to repopulate that. It even then lets them know that bugs were identified previously as a problem. If the bugs are still there, the user can just save the new inspection with the note. If the bugs are gone, they can remove/change the note and then save the record. This level of functionality, being able to edit/override a value from a calculated expression, would be a major benefit to my organization and workflows.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 22:05:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1387745#M1611</guid>
      <dc:creator>GrantDix</dc:creator>
      <dc:date>2024-02-27T22:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1388395#M1613</link>
      <description>&lt;P&gt;This capability would be hugely helpful for us too--for another related reason.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This past summer we had a big issue when we used the calculation "&lt;SPAN&gt;GetUser($layer).fullName" not realizing that this calculation doesn't work if the device is offline (a known limitation that we didn't know about).&amp;nbsp; Unfortunately, using a calculation makes the field un-editable and required. So when our users were collecting data and in a completely offline area, they were unable to complete/submit the form/data because the field was required and the calculation didn't work...and since it wasn't editable there was nothing they could do about it to move forward.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems like a small thing to have the users name calculated, but it helps with consistency and is convenient. Making the calculated fields editable would fix these grid lock situations when users are offline, while allowing for the convince when they do have service.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 23:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1388395#M1613</guid>
      <dc:creator>PamelaKing</dc:creator>
      <dc:date>2024-02-28T23:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1388457#M1614</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/211360"&gt;@PamelaKing&lt;/a&gt;&amp;nbsp;interesting - we use the exact same expression for the same reason in offline enabled maps and it works fine both online and offline. For us, it would be useful for staff to be able to override it when they are updating a feature that is not their primary responsibility but for which they are temporarily looking after while someone else is on leave.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LindsayRaabe_FPCWA_0-1709165698879.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96237i4B0FE6AFFF00420C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LindsayRaabe_FPCWA_0-1709165698879.png" alt="LindsayRaabe_FPCWA_0-1709165698879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 00:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1388457#M1614</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2024-02-29T00:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1388840#M1615</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/148829"&gt;@LindsayRaabe_FPCWA&lt;/a&gt;&amp;nbsp;that is really interesting. I wonder if you have some different setting on your device or in your form that let it work--that would be awesome.&amp;nbsp; Even with it working for you, thanks for sharing that the editing would be helpful.&amp;nbsp; I agree!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am so curious...have you all used the your form/calculation in&amp;nbsp; areas with no service at all?&amp;nbsp; That was when we were having issues.&amp;nbsp; For a while we thought it was just working, but we figured out what was happening was that people were in their offline maps but did have some level of service so the device was able to run calculation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I just tried the calculation in a test map and put my device in airplane mode to simulate being completely offline and it failed. If you know of a setting that can make it work, please share with me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FieldMapFail.jpg" style="width: 229px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96310i352486B4C8336B8E/image-dimensions/229x495?v=v2" width="229" height="495" role="button" title="FieldMapFail.jpg" alt="FieldMapFail.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 15:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1388840#M1615</guid>
      <dc:creator>PamelaKing</dc:creator>
      <dc:date>2024-02-29T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1389197#M1616</link>
      <description>&lt;P&gt;Interesting indeed. Maybe&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1128"&gt;@DougMorgenthaler&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1138"&gt;@JeffShaner&lt;/a&gt;&amp;nbsp;might be able to shed some light on this? Could be that you need to submit a support request through MyEsri to get it diagnosed. Could be a bug based on device type, device OS, app versions, etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 00:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1389197#M1616</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2024-03-01T00:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1389204#M1617</link>
      <description>&lt;P&gt;The ability to change calculated fields is absolutely critical. For example, many data entry tasks setting the current date and time as the default is helpful. That said, there are cases when the date must be changed to log something that happened at a previous time/date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For fields calculated via intersection with arcade, when there are overlapping or adjacent polygons in the layer used to push values to an edit layer, often, the wrong feature is used (based on order of overlap, user's map extent when editing, etc.. ). This is why the intersect picker feature in web app builder is so useful.&lt;/P&gt;&lt;P&gt;For many folks, this is one reason why adoption of experience builder is lagging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 00:31:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1389204#M1617</guid>
      <dc:creator>WetherbeeDorshow</dc:creator>
      <dc:date>2024-03-01T00:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1389330#M1620</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3145"&gt;@WetherbeeDorshow&lt;/a&gt;&amp;nbsp;I hear you on the override option for intersected features. We have a similar process in place when an intersected feature is incorrect or simply doesn't exist so it would be good to have manual input options. We do reduce the intersection issues by adding a negative feature buffer to our source feature (which cover large areas) so it reduces the chance of intersecting a neighbouring operation. Maybe thats something that could help in your situation. See my code below and discussion here for how we do this:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/help-with-returning-value-from-2-intersecting/m-p/1170958#M45895" target="_blank" rel="noopener"&gt;Solved: Help with returning value from 2 Intersecting Laye... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note - the code below searches different layers based on selections in other fields, and depending on those, will reduce the search area by different amounts. The side effect is, if a feature is too small to start with (less than 500m or 2000m across depending on the reduction) then it fails to return any intersection and results in the "See Comments" value.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var BufferedFeature1 = Buffer($feature, -250, 'meters') //Negative buffer of 250m to focus search on smaller feature types
var BufferedFeature2 = Buffer($feature, -1000, 'meters') //Negative buffer of 1000m to focus search on larger feature types
var intersectLayer1 = Intersects(FeatureSetByName($map, 'Plantations'),BufferedFeature1)
var intersectLayer2 = Intersects(FeatureSetByName($map, 'Concept Areas'),BufferedFeature1)
var intersectLayer3 = Intersects(FeatureSetByName($map, 'Harvest Plan'),BufferedFeature1)
var intersectLayer4 = Intersects(FeatureSetByName($map, 'Operation Boundaries'),BufferedFeature2)


if ($feature.EstateType == "PTN") {for(var f in intersectLayer1) {
    if(!IsEmpty(f.Plantation)) {
        return f.Plantation
    }
}
for(var f in intersectLayer2) {
    if(!IsEmpty(f.PlannedName)) {
        return f.PlannedName
    }
}}
if ($feature.EstateType == "NF") {for(var f in intersectLayer3) {
    if(!IsEmpty(f.Block_Cpt)) {
        return f.Block_Cpt + " (" + f.LOIS + ")"
    }
}}
if ($feature.EstateType == "SW") {for(var f in intersectLayer4) {
    if(!IsEmpty(f.OperationArea)) {
        return f.OperationArea
    }
}}
//Repeat the first line for all field1 and field2 values
else {return "See Comments"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 08:02:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1389330#M1620</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2024-03-01T08:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1389460#M1621</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/148829"&gt;@LindsayRaabe_FPCWA&lt;/a&gt;&amp;nbsp;we submitted a support request for this back in July 2023 and was told it is a known limitation.&amp;nbsp; We also submitted an enhancement request (&lt;STRONG&gt;ENH-000157471:&amp;nbsp;&lt;/STRONG&gt;Allow Field Maps to support the use of the GetUser() arcade function in a fully disconnected offline environment).&amp;nbsp;I am unable to check on its status though.&amp;nbsp; My agency allows a limited number of users to access My Esri and I am not one of them.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 14:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1389460#M1621</guid>
      <dc:creator>PamelaKing</dc:creator>
      <dc:date>2024-03-01T14:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1389752#M1622</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/211360"&gt;@PamelaKing&lt;/a&gt;&amp;nbsp;I'll see if I can follow up on this myself. It won't show in our account but I'll reach out to support. I'd like to restore my confidence in that it is working properly instead of just nobody complaining about it yet and my Admin role making it work instead when I try it (which has happened before).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 22:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1389752#M1622</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2024-03-01T22:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1391598#M1627</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/211360"&gt;@PamelaKing&lt;/a&gt;&amp;nbsp;I've had a chat with Esri support. Here's what they said:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;In terms of the the enhancement,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ENH-000157471&lt;/STRONG&gt;: Allow Field Maps to support the use of the GetUser() arcade function in a fully disconnected offline environment. The current status of this is under consideration, meaning that the product team is considering adding this functionality to a future release.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've tested this on my device, and it will work in an offline map when I am connected to the internet. However, when I turn wifi and mobile data on the device off the getuser() calculation does not work.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Are you able to test using an offline map and disconnecting the device from the internet?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I look forward to hearing from you.&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;And a followup up response after confirming it is an issue for us too :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;It looks like the issue might be related to the full name function, this must be stored in the Portal, however I have tested the arcade for the username which is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;GetUser($layer).username&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;and this appears to work offline.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is the workaround sufficient until this functionality is implemented?&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;I've since used the below logic to extract first and last names and format them correctly from our Usernames. I hope that helps!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//GetUser($layer).fullName
//Use the below if usernames are formatted as first.last@abc_def. 
//Uses Split to remove text "@abc_def" and then splits the remaining text using the "." 
//Returns the first and last names fortmatted using Proper case. 
Proper(concatenate([Split(Split(GetUser($layer).username,"@")[0],".")[0],Split(Split(GetUser($layer).username,"@")[0],".")[1]]," "))&lt;/LI-CODE&gt;&lt;P&gt;Now , to go about updating all my forms with the workaround!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 01:00:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1391598#M1627</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2024-03-06T01:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1391852#M1630</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/148829"&gt;@LindsayRaabe_FPCWA&lt;/a&gt;&amp;nbsp;Thanks for the update! That is great to hear they are considering it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is correct.&amp;nbsp; The code does succeed in an offline map, if the device is connected to service or wifi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will not work if we are truly offline (meaning out of service with no wifi).&amp;nbsp; Our users discovered it when they were in an area with absolutely no service and we recreated it by turning off wifi and service settings then attempting to collect data in an offline map.&amp;nbsp; Same result...will not work and locks down the form.&amp;nbsp; Your only option is to discard the form and lose all the data you collected for that feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the suggested work around.&amp;nbsp; Unfortunately, our agency updated all our accounts last year and our usernames are know our PIV card numbers (&lt;SPAN&gt;2899201405120821460####_usfs) which isn't useful.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Our work around for now is that people have to type in their names.&amp;nbsp; But I am very happy to hear they are considering updating this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 15:06:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1391852#M1630</guid>
      <dc:creator>PamelaKing</dc:creator>
      <dc:date>2024-03-06T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1392265#M1637</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/211360"&gt;@PamelaKing&lt;/a&gt;&amp;nbsp;I don't know how often your users change, but maybe you could consider using a table loaded into the map with the list of user ID's and their name in a separate field. The table could be updated from a source of truth (Azure?) nightly or when users are added or removed using some other process (python?) and the Arcade calculation would use getuser($layer).username to perform the lookup and return the name value. Thats all a bit beyond what I've done with python, but with the right know how, I'm sure someone could make it work. Definitely a lot of working around though compared to GetUser($layer).FullName!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 00:25:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1392265#M1637</guid>
      <dc:creator>LindsayRaabe_FPCWA</dc:creator>
      <dc:date>2024-03-07T00:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Editing on Fields with Arcade Calculated Expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1395427#M1662</link>
      <description>&lt;P&gt;Just realized I created a duplicate idea, d'oh. One more +1 on this Idea. Here's another example: Let's say we have a Date_Inspected field.&amp;nbsp; We want to save users time and we put the following Calculated Expression on the field:&lt;/P&gt;&lt;PRE&gt;Now()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works great, it sets the current time and date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if a user's phone battery died and they got back to the office late. So the following day, they want to enter in inspections. Well, it's going to have the wrong date, it will be today, not yesterday.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution:&amp;nbsp; allow users to override a Calculated Expression with their own attribute values input.&lt;/P&gt;&lt;P&gt;When I asked Tech Support (initially I thought this was a bug) they pointed out, this may or&amp;nbsp;&lt;STRONG&gt;may not&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;be the desired behavior.&amp;nbsp; Thus, a simple solution. An&amp;nbsp;&lt;STRONG&gt;option&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;checkbox toggle, to allow users to manually override a Calculated Expression or&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to allow it, on a per-field basis in the Smart Form Designer / Field Maps Designer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, we love Fields Maps and Field Maps Designer!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 16:59:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/allow-editing-on-fields-with-arcade-calculated/idc-p/1395427#M1662</guid>
      <dc:creator>Kevin_MacLeod</dc:creator>
      <dc:date>2024-03-13T16:59:23Z</dc:date>
    </item>
  </channel>
</rss>

