<?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: Field Maps expression: calculate attribute if another attribute is null in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-expression-calculate-attribute-if/m-p/1666631#M11960</link>
    <description>&lt;P&gt;Thanks for the answers. I tried both solutions (replacing attribute1/2 with the actual field names of course) but I keep getting an error when i try to save stating that the formula is invalid.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Nov 2025 09:39:28 GMT</pubDate>
    <dc:creator>RasmusRaun</dc:creator>
    <dc:date>2025-11-18T09:39:28Z</dc:date>
    <item>
      <title>Field Maps expression: calculate attribute if another attribute is null</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-expression-calculate-attribute-if/m-p/1664152#M11911</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;Is it possible to make an expression in my Field maps formula, where the value of attribute1 (an integer) = 4 if the value of attribute2 (a string) is not null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Rasmus&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 08:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-expression-calculate-attribute-if/m-p/1664152#M11911</guid>
      <dc:creator>RasmusRaun</dc:creator>
      <dc:date>2025-11-07T08:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps expression: calculate attribute if another attribute is null</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-expression-calculate-attribute-if/m-p/1664984#M11931</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is possible - it will require you to have an editability expression and a value expression on attribute1.&lt;/P&gt;&lt;P&gt;editability expression must return 'false' if you want the value to calculate, so it would look like:&lt;BR /&gt;if (IsEmpty($feature.attribute2)) { return true };&lt;BR /&gt;return false;&lt;BR /&gt;&lt;BR /&gt;value expression just needs to handle the calculation: (this won't fire if editability = false)&lt;BR /&gt;if (!IsEmpty($feature.attribute2)) { return 4 };&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 19:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-expression-calculate-attribute-if/m-p/1664984#M11931</guid>
      <dc:creator>NathanDavis</dc:creator>
      <dc:date>2025-11-11T19:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps expression: calculate attribute if another attribute is null</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-expression-calculate-attribute-if/m-p/1666184#M11954</link>
      <description>&lt;P&gt;Yes, you can do this with an Arcade expression in Field Maps.&lt;BR /&gt;Example:&lt;/P&gt;&lt;P&gt;if (!IsEmpty($feature.attribute2)) {&lt;BR /&gt;return 4;&lt;BR /&gt;} else {&lt;BR /&gt;return $feature.attribute1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This sets attribute1 = 4 only when attribute2 is not null. Otherwise, it keeps the original value.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 06:22:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-expression-calculate-attribute-if/m-p/1666184#M11954</guid>
      <dc:creator>JamesMiller36</dc:creator>
      <dc:date>2025-11-17T06:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps expression: calculate attribute if another attribute is null</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-expression-calculate-attribute-if/m-p/1666631#M11960</link>
      <description>&lt;P&gt;Thanks for the answers. I tried both solutions (replacing attribute1/2 with the actual field names of course) but I keep getting an error when i try to save stating that the formula is invalid.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 09:39:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-expression-calculate-attribute-if/m-p/1666631#M11960</guid>
      <dc:creator>RasmusRaun</dc:creator>
      <dc:date>2025-11-18T09:39:28Z</dc:date>
    </item>
  </channel>
</rss>

