<?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: Update field in all feature which match value in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578224#M10291</link>
    <description>&lt;P&gt;You should absolutely be able to do this in Field Maps. In your form designer, click on the Results atteibute and click calculated expressions. Here's an example from an app of mine:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_0-1737645672333.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123841i868DE52C7D4B3758/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_0-1737645672333.png" alt="ZachBodenner_0-1737645672333.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then you can basically use the same code that either myself or&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;&amp;nbsp;provided.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 15:21:48 GMT</pubDate>
    <dc:creator>ZachBodenner</dc:creator>
    <dc:date>2025-01-23T15:21:48Z</dc:date>
    <item>
      <title>Update field in all feature which match value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578150#M10286</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I would like to be able to update all the features which have the same attribute. For example, all features that has a field 'ID' with value 1, i would like all the features to have the field 'Result' updated with 'Yes' when a 'Yes; is entered into 1 feature.&lt;/P&gt;&lt;P&gt;I believe i need to filter the layer but i cant work out how to do this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 12:15:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578150#M10286</guid>
      <dc:creator>JamesMitchell8</dc:creator>
      <dc:date>2025-01-23T12:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Update field in all feature which match value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578187#M10287</link>
      <description>&lt;P&gt;Are you planning to do this using attribute rules, or a field calculator? An attribute rule might look like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var i = $feature.ID
var r = $feature.Result
// if ID is 1, enter 'Yes' in result, otherwise leave empty)
var resultValue = When(i==1,'Yes','')
return resultValue&lt;/LI-CODE&gt;&lt;P&gt;If you want to use a field calculator, you would do a Select by Attribute:&lt;/P&gt;&lt;P&gt;WHERE ID = 1 (or, WHERE ID 'is equal to' 1)&lt;/P&gt;&lt;P&gt;Then your attribute table will have only 1's selected, and you can run your field calculator and enter 'Yes' into the value box.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 14:14:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578187#M10287</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-01-23T14:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Update field in all feature which match value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578207#M10288</link>
      <description>&lt;P&gt;The other question is are you talking about different features within the same feature class or the same ID in multiple feature classes. If it is the first then a field calculation using&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt;&amp;nbsp;solution would work.&lt;/P&gt;&lt;P&gt;A simpler way to write&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt;&amp;nbsp;attribute rule is:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;iif( $feature.ID == 1 &amp;amp;&amp;amp; $feature.Result != 'YES' , 'YES' , $feature.Result )&lt;/LI-CODE&gt;&lt;P&gt;But that is assuming that you simply don't want any changes, otherwise you can change&amp;nbsp;&lt;STRONG&gt;$feature.Result&lt;/STRONG&gt; to&amp;nbsp;&lt;STRONG&gt;NULL&lt;/STRONG&gt; or whatever returned value you want in its place.&lt;/P&gt;&lt;P&gt;If it is the latter then you would need to use an attribute rule for a python script to accomplish that.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 14:50:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578207#M10288</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-01-23T14:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Update field in all feature which match value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578209#M10289</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you, i would like to do this in field maps. When one record 'Result' is updated, i want all the other features 'Result' field to update too where ID = 1.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 14:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578209#M10289</guid>
      <dc:creator>JamesMitchell8</dc:creator>
      <dc:date>2025-01-23T14:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Update field in all feature which match value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578219#M10290</link>
      <description>&lt;P&gt;This cannot be done in field maps rather it has to be set up as an attribute rule or ran as a field calculation. Field maps is intended for allowing changes to the behavior of the form itself.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 15:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578219#M10290</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-01-23T15:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Update field in all feature which match value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578224#M10291</link>
      <description>&lt;P&gt;You should absolutely be able to do this in Field Maps. In your form designer, click on the Results atteibute and click calculated expressions. Here's an example from an app of mine:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_0-1737645672333.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123841i868DE52C7D4B3758/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_0-1737645672333.png" alt="ZachBodenner_0-1737645672333.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then you can basically use the same code that either myself or&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;&amp;nbsp;provided.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 15:21:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578224#M10291</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-01-23T15:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Update field in all feature which match value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578231#M10292</link>
      <description>&lt;P&gt;Hi Zach,&lt;/P&gt;&lt;P&gt;I don't understand how that will update all the features in the feature layer which have an id of 1? It looks like it only updates the current feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 15:33:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578231#M10292</guid>
      <dc:creator>JamesMitchell8</dc:creator>
      <dc:date>2025-01-23T15:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Update field in all feature which match value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578235#M10293</link>
      <description>&lt;P&gt;Oh I see what you're saying here. So in Field Maps, this will affect all&amp;nbsp;&lt;EM&gt;future&lt;/EM&gt; additions to the dataset. If you need to do it in batch, then&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt; is right, you can't do that in Field Maps and you'll need to use the Field Calculator.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 15:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578235#M10293</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-01-23T15:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Update field in all feature which match value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578265#M10294</link>
      <description>&lt;P&gt;I want it to update &lt;STRONG&gt;all&lt;/STRONG&gt; the features in the dataset at the same time when a value is entered in the form. I tried using the calculate field but i cant use arcade due to sync and i doint know how to do this in SQL either. I dont even know if this will run all the time or if it just a one off calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I will have to create a python script as a scheduled task&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 16:17:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578265#M10294</guid>
      <dc:creator>JamesMitchell8</dc:creator>
      <dc:date>2025-01-23T16:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Update field in all feature which match value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578298#M10297</link>
      <description>&lt;P&gt;This capability must have been added for Enterprise releases 11.0 and later. We are currently using 10.9.1 which is why I originally thought it wouldn't work. I suppose with later updates that this will be possible.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 17:01:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578298#M10297</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-01-23T17:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Update field in all feature which match value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578304#M10298</link>
      <description>&lt;P&gt;What kind of versioning are you using if you are using any at all.&lt;/P&gt;&lt;P&gt;It sounds like you are using batch versioning which would require that you to disable the service, delete the version possibly, apply the edits/create the attribute rule, and then re-publish the service.&lt;/P&gt;&lt;P&gt;We are using traditional versioning since we have a lot of back end processes that run in SQL so I am a little unfamiliar with the batch versioning.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 17:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/update-field-in-all-feature-which-match-value/m-p/1578304#M10298</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-01-23T17:08:50Z</dc:date>
    </item>
  </channel>
</rss>

