<?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: Survey with optional attachments automatically creates related record in table even if there isn't an attachment in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1689039#M65584</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/333015"&gt;@AnninaRupe1&lt;/a&gt;&amp;nbsp;Correct, it would require user interaction to check that yes button. But you want the option available for them to provide an attachment when not required. That option would be controlled by the user selecting yes and it would be required for them to check use when existing geometry is available.&amp;nbsp; I have attached an example as maybe I am not explaining it well.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Mar 2026 18:19:47 GMT</pubDate>
    <dc:creator>Neal_t_k</dc:creator>
    <dc:date>2026-03-06T18:19:47Z</dc:date>
    <item>
      <title>Survey with optional attachments automatically creates related record in table even if there isn't an attachment</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688799#M65572</link>
      <description>&lt;P&gt;I have created a survey with Survey123 Connect with the option of adding multiple attachments; I've used a begin repeat with only one record in the repeat, which is of 'file' type. There is only one other parameter for the question: it's required to add an attachment if a previous question is marked as 'yes'. It works great.&lt;/P&gt;&lt;P&gt;However, I have noticed that if a user doesn't need to include an attachment, a relationship record is still created in the related table. This isn't consistent, either; sometimes the relationship record is created and other times it isn't.&lt;/P&gt;&lt;P&gt;The problem comes when users are reviewing the collected data in a web map. The parent record's pop-up states that there is an attachment/related record, but when they click on it, there's nothing attached. I'd like to have a relationship only created when there is actually an attachment. So, if there isn't an attachment, the related record section in the parent record's pop-up would say '0' rather than '1'.&lt;/P&gt;&lt;P&gt;Does anyone know a solution for this?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 20:45:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688799#M65572</guid>
      <dc:creator>AnninaRupe1</dc:creator>
      <dc:date>2026-03-05T20:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Survey with optional attachments automatically creates related record in table even if there isn't an attachment</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688886#M65574</link>
      <description>&lt;P&gt;I've seen this behaviour in surveys without attachments as well.&amp;nbsp; I've seen it the most where there's a parent-child-grandchild relationship - that is, main form, repeat, nested repeat.&amp;nbsp; Have seen it very inconsistently as well; it usually doesn't happen, but maybe once every 15 or 20 submissions we'll see an empty record that has no values on the required fields.&lt;/P&gt;&lt;P&gt;The only solution I've found (and this isn't great) is to detect these empty records and delete them.&amp;nbsp; Many of the surveys I work with use a scheduled notebook to perform validation, notification to users, etc., so I've extended this notebook to check for these empty records and delete them when found.&amp;nbsp; It looks at the repeat tables and checks whether a combination of required fields are all null, if they are then it adds the Object ID to a list and when finished checking all new submissions, deletes those records in a single call.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 06:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688886#M65574</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2026-03-06T06:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Survey with optional attachments automatically creates related record in table even if there isn't an attachment</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688944#M65577</link>
      <description>&lt;P&gt;Thanks for the insight,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115587"&gt;@MobiusSnake&lt;/a&gt;. I've also been manually deleting the empty records, mainly when I'm migrating my data to new versions of my Tool. Not ideal, but I'm glad to know I'm not the only one in this boat.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 13:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688944#M65577</guid>
      <dc:creator>AnninaRupe1</dc:creator>
      <dc:date>2026-03-06T13:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Survey with optional attachments automatically creates related record in table even if there isn't an attachment</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688949#M65579</link>
      <description>&lt;P&gt;Just throwing this out there, have you tried making the image question relevant on something or the whole repeat relevant so it only shows when the user is required to make an attachment.&amp;nbsp; Worth a shot to see if that prevents it.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 13:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688949#M65579</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-03-06T13:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Survey with optional attachments automatically creates related record in table even if there isn't an attachment</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688961#M65580</link>
      <description>&lt;P&gt;Nice thought, but the user still needs the option to add attachments even if the question that makes adding an attachment required isn't marked as 'yes'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A little more background: there is a possibility that a user already has a shapefile available for a site, and instead of having them digitize the polygon again in the survey, I'm having them just do a simple shape over the site. Then, later in the survey, they mark the question "Is there existing geometry available?" as 'Yes'. This then makes the attachment question required, mainly so they don't forget to add the existing geometry. Sometimes, though, the user doesn't have existing geometry so they digitize the site in the survey and they mark the&amp;nbsp;question "Is there existing geometry available?" as 'No'. The attachment section isn't marked as required but it's still visible in case they have site photos they want to keep with the survey.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 14:16:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688961#M65580</guid>
      <dc:creator>AnninaRupe1</dc:creator>
      <dc:date>2026-03-06T14:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Survey with optional attachments automatically creates related record in table even if there isn't an attachment</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688976#M65582</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/333015"&gt;@AnninaRupe1&lt;/a&gt;&amp;nbsp;Thanks for the clarification.&amp;nbsp; So for context, if a repeat is relevant there is going to be a&amp;nbsp; related record i.e. if you put '5' in repeat count, you would start with 5 repeats, if they were empty there would still be 5 empty records.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how could you achieve you goals:&amp;nbsp; Make the repeat relevant on a question like. "Add an Attachement" with only yes as an option, default to blank.&amp;nbsp; Make that question conditionally required from your other criteria.&amp;nbsp; That way if they are required to have an attachment they have to check "yes", but if not it is an option. Then make the attachment required.&amp;nbsp; Hope that makes sense.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 14:56:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1688976#M65582</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-03-06T14:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Survey with optional attachments automatically creates related record in table even if there isn't an attachment</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1689010#M65583</link>
      <description>&lt;P&gt;I don't think that will work because if I put a relevant on the repeat, it will only show if the previous question is marked as 'Yes' (there is only one option for this question: 'Yes'. It can be skipped). I still need the user to be able to attach files if that field is skipped.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 17:20:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1689010#M65583</guid>
      <dc:creator>AnninaRupe1</dc:creator>
      <dc:date>2026-03-06T17:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Survey with optional attachments automatically creates related record in table even if there isn't an attachment</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1689039#M65584</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/333015"&gt;@AnninaRupe1&lt;/a&gt;&amp;nbsp;Correct, it would require user interaction to check that yes button. But you want the option available for them to provide an attachment when not required. That option would be controlled by the user selecting yes and it would be required for them to check use when existing geometry is available.&amp;nbsp; I have attached an example as maybe I am not explaining it well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 18:19:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1689039#M65584</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-03-06T18:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Survey with optional attachments automatically creates related record in table even if there isn't an attachment</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1689083#M65586</link>
      <description>&lt;P&gt;I see. Thanks for the example. Unfortunately this makes the survey longer (I know, just one easy question) but users push back on extra questions, no matter how easy. I'll have to just remove empty records every once in a while.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 20:17:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey-with-optional-attachments-automatically/m-p/1689083#M65586</guid>
      <dc:creator>AnninaRupe1</dc:creator>
      <dc:date>2026-03-06T20:17:34Z</dc:date>
    </item>
  </channel>
</rss>

