<?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 Detect When Attachment is Added - Field Maps Tasks in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/detect-when-attachment-is-added-field-maps-tasks/m-p/1670634#M12037</link>
    <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;Enterprise 12.0&lt;/P&gt;&lt;P&gt;We're looking into Field Maps Tasks, and we want a way to prevent final submission until an attachment is added, any ideas?&lt;/P&gt;&lt;P&gt;Currently a way that we're trying to detect in the moment if an attachment has been added to the actual item in Field Maps is the way below, is this possible?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if (count(Attachments($feature)) != 0) { 
  return "Passed"
}&lt;/LI-CODE&gt;&lt;P&gt;This is just a demo text to verify if this would work, it adds the "Passed" value after it is submitted, but the value is not calculated until actual execution, I have seen other attributes like this in the past, but was curious if you all have had any ideas?&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
    <pubDate>Thu, 04 Dec 2025 19:47:07 GMT</pubDate>
    <dc:creator>CodyPatterson</dc:creator>
    <dc:date>2025-12-04T19:47:07Z</dc:date>
    <item>
      <title>Detect When Attachment is Added - Field Maps Tasks</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/detect-when-attachment-is-added-field-maps-tasks/m-p/1670634#M12037</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;Enterprise 12.0&lt;/P&gt;&lt;P&gt;We're looking into Field Maps Tasks, and we want a way to prevent final submission until an attachment is added, any ideas?&lt;/P&gt;&lt;P&gt;Currently a way that we're trying to detect in the moment if an attachment has been added to the actual item in Field Maps is the way below, is this possible?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if (count(Attachments($feature)) != 0) { 
  return "Passed"
}&lt;/LI-CODE&gt;&lt;P&gt;This is just a demo text to verify if this would work, it adds the "Passed" value after it is submitted, but the value is not calculated until actual execution, I have seen other attributes like this in the past, but was curious if you all have had any ideas?&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 19:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/detect-when-attachment-is-added-field-maps-tasks/m-p/1670634#M12037</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-12-04T19:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Detect When Attachment is Added - Field Maps Tasks</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/detect-when-attachment-is-added-field-maps-tasks/m-p/1670643#M12038</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It is possible to do so. The way to go about it is to add a constraint rule on the attachment table itself to look for the globalid of the related&amp;nbsp;feature record and then set the insert trigger to have it look to see if the required attributes have been filled out.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 19:34:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/detect-when-attachment-is-added-field-maps-tasks/m-p/1670643#M12038</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-12-04T19:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Detect When Attachment is Added - Field Maps Tasks</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/detect-when-attachment-is-added-field-maps-tasks/m-p/1670656#M12039</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response! I'm currently blanking on where to find this constraint rule placement for the attribute table, I forgot to add it initially but this is Enterprise 12.0 if that helps the locating of this!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 19:46:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/detect-when-attachment-is-added-field-maps-tasks/m-p/1670656#M12039</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-12-04T19:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Detect When Attachment is Added - Field Maps Tasks</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/detect-when-attachment-is-added-field-maps-tasks/m-p/1671273#M12053</link>
      <description>&lt;P&gt;That actually makes it the easiest since the latest version of Enterprise actually allows for better control using attribute rules. So to get to the rules themselves:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You can either right click on the table/feature in the catalog and select Data Design or similar to the image below&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RPGIS_0-1765211092488.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/145003i42BF60BA744D6E91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RPGIS_0-1765211092488.png" alt="RPGIS_0-1765211092488.png" /&gt;&lt;/span&gt;&lt;P&gt;From there you can click on the attribute rules&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RPGIS_1-1765211134782.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/145004i78882A2D880645C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RPGIS_1-1765211134782.png" alt="RPGIS_1-1765211134782.png" /&gt;&lt;/span&gt;&lt;P&gt;Click on the constraint tab and you can then add your rule.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 08 Dec 2025 16:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/detect-when-attachment-is-added-field-maps-tasks/m-p/1671273#M12053</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-12-08T16:26:02Z</dc:date>
    </item>
  </channel>
</rss>

