<?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: Count-selected Multiline image in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1345390#M52663</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/193881"&gt;@MatthewRogers&lt;/a&gt;&amp;nbsp; Good find. I can repro this problem. I will ask Tech Support to create a BUG for this. The count-selected() function does not report the correct number of photos in the mobile app when the record is opened from the inbox.&amp;nbsp; Once we have a BUG number it will be posted here.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 01:58:52 GMT</pubDate>
    <dc:creator>IsmaelChivite</dc:creator>
    <dc:date>2023-11-03T01:58:52Z</dc:date>
    <item>
      <title>Count-selected Multiline image</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1345302#M52659</link>
      <description>&lt;P&gt;I am working on a survey that uses a multiline appearance for an image question. I am using the count-selected function in another question to count the number of photos from the image question. Everything is working correctly when a new survey is initiated and sent. However, if I edit that survey from the inbox any additional photos added to the image question are not counted from where the count left off from the initial submittal. Instead it resets and starts the count from 0. For example, if I took 2 photos on the initial survey the count-selected question correctly counts 2 photos, but when I edit that survey from the inbox and add additional photos it will start the count over from 0. I've tried the calculationMode=always but that did not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this expected behavior? Is there a work around for this?&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/415562"&gt;@Ismael&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt Rogers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 21:40:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1345302#M52659</guid>
      <dc:creator>MatthewRogers</dc:creator>
      <dc:date>2023-11-02T21:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count-selected Multiline image</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1345334#M52662</link>
      <description>&lt;P&gt;Hmmm.&amp;nbsp; That would not be my expectation, but I guess I understand why the behavior is like that (and it logically should not be like that). Let me check as this could be a software defect.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 23:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1345334#M52662</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2023-11-02T23:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count-selected Multiline image</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1345390#M52663</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/193881"&gt;@MatthewRogers&lt;/a&gt;&amp;nbsp; Good find. I can repro this problem. I will ask Tech Support to create a BUG for this. The count-selected() function does not report the correct number of photos in the mobile app when the record is opened from the inbox.&amp;nbsp; Once we have a BUG number it will be posted here.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 01:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1345390#M52663</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2023-11-03T01:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count-selected Multiline image</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1345695#M52678</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;Thank you for looking into this and reporting. Looking forward to when it will gain that functionality.&amp;nbsp;&lt;!--  StartFragment   --&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 20:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1345695#M52678</guid>
      <dc:creator>MatthewRogers</dc:creator>
      <dc:date>2023-11-06T20:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count-selected Multiline image</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1345852#M52686</link>
      <description>&lt;P&gt;BUG-000162677 - Count-selected for image question with multiline appearance returns incorrect count when an existing submission is edited in Survey123 field app inbox&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 00:45:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1345852#M52686</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2023-11-04T00:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count-selected Multiline image</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1506740#M57978</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/193881"&gt;@MatthewRogers&lt;/a&gt;&amp;nbsp; - &lt;SPAN&gt;BUG-000162677 has been re-opened today since I was able to reproduce in Survey123 Field App version 3.20.69 on an iPhoneX.&amp;nbsp; It was originally closed as a duplicate, but the linked issue wasn't quite the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/attachments-in-survey123-field-app/m-p/1185233/highlight/true#M43386" target="_self"&gt;posted a potential workaround here&lt;/A&gt; for different issue, but it should also work for your issue in this thread.&amp;nbsp; Essentially, build a link to open and edit the record in a mobile web browser to view the actual count and/or interact with existing file/image attachments.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 16:51:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1506740#M57978</guid>
      <dc:creator>ToddW_stl</dc:creator>
      <dc:date>2024-07-18T16:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count-selected Multiline image</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1508568#M58054</link>
      <description>&lt;P&gt;to close this loop,&amp;nbsp;&lt;SPAN&gt;BUG-000162677 was closed again internally as a known limitation (and duplicate of another known and now documented issue &lt;SPAN class=""&gt;BUG-000152893&lt;/SPAN&gt;) for the following reason from&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/251557"&gt;@ZacharySutherby&lt;/a&gt;&amp;nbsp;.&amp;nbsp; Thanks for the support and info on this Zach!&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;This defect was closed as a duplicate of BUG-000152893 because they have the same core issue. Any expressions that reference an image question only use images that are local on the device and not any present in the server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;When a survey is opened via Inbox, the existing images that display aren't downloaded to the device and instead are temporarily downloaded in memory on form load (this is why images in the Inbox&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepareforediting.htm#ESRI_SECTION1_8D52397BCD104F4AA79E610BC02D2761:~:text=Offline%20workflows%20are%20not%20supported." target="_blank" rel="noopener noreferrer"&gt;&lt;SPAN class=""&gt;don't work offline&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class=""&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;BUG-000152893 is marked as resolved as it was added as a known&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepareforediting.htm#LI_ED2362CBB1D044DD8A9443F718CA95D9" target="_blank" rel="noopener noreferrer"&gt;&lt;SPAN class=""&gt;limitation in the documentation&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(same with this behavior as well). The steps in both this and the other defect will still yield the same result in the current application.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN class=""&gt;A&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/pulldatajavascript.htm" target="_blank" rel="noopener noreferrer"&gt;&lt;SPAN class=""&gt;JavaScript function&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;would need to be used to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/query-attachments-feature-service-layer/" target="_blank" rel="noopener noreferrer"&gt;&lt;SPAN class=""&gt;query the attachments&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;related to the feature and return the count, then you can add that number with any new images added using the count-selected() function.&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 23 Jul 2024 14:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1508568#M58054</guid>
      <dc:creator>ToddW_stl</dc:creator>
      <dc:date>2024-07-23T14:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count-selected Multiline image</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1596773#M61736</link>
      <description>&lt;P&gt;Another workaround would be to use a calculated attachment count field and&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-pulldata-quot-layer/ba-p/1224415" target="_self"&gt;pulldata functions&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you access the record in the inbox, you will need something like these fields:&lt;/P&gt;&lt;P&gt;GlobalID: to get the record you are using from the cloud&lt;BR /&gt;&lt;BR /&gt;where_clause: concat("GlobalID = '",${GlobalID,"'")&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;get_json: pulldata("@layer", "getRecord", [URL of the fs]+"?t="+now(), ${where_clause})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;prev_attach_count: pulldata("@json", ${get_json}, "attributes.attachment_count")&lt;BR /&gt;&lt;BR /&gt;attachment_count: count-selected(${fieldbook_images})+if(pulldata("@property", 'mode') = 'edit',${prev_attach_count},0)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When the record is created, the attachment count will be saved. When the record is edited, you have pulled a saved attachment count and are adding the new images taken.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 19:34:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/count-selected-multiline-image/m-p/1596773#M61736</guid>
      <dc:creator>JJ_Reyes</dc:creator>
      <dc:date>2025-03-18T19:34:04Z</dc:date>
    </item>
  </channel>
</rss>

