<?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: Prevent Editing Previously Submitted Repeats in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1516739#M58396</link>
    <description>&lt;P&gt;Did you add "query"&lt;SPAN class=""&gt;? &lt;STRONG&gt;query allowUpdates=false&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;However, note that the &lt;STRONG&gt;default&lt;/STRONG&gt; behaviour is &lt;STRONG&gt;allowUpdates=false, &lt;/STRONG&gt;so I don't think there is value in&amp;nbsp;specifically specifying it. Same deal with &lt;STRONG&gt;allowAdds&lt;/STRONG&gt;, which defaults to &lt;STRONG&gt;true&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 15:31:06 GMT</pubDate>
    <dc:creator>abureaux</dc:creator>
    <dc:date>2024-08-08T15:31:06Z</dc:date>
    <item>
      <title>Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1516629#M58386</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a three surveys built on the same feature service. In Survey B, the repeat section is exposed while in Survey A it is not.&amp;nbsp; The goal is to have a members of the public submit Survey A then receive a link that allows them to go back and edit information they added via Survey B, including adding repeats (in this case representing comments). Members of my organization should also be able to add repeats via Survey C (build on the same service, but with ONLY the repeat section exposed). I've tested all of the surveys and they would just fine in terms of data submission, but one important aspect is that neither the public nor org. staff should be able to&amp;nbsp;&lt;EM&gt;edit&lt;/EM&gt; a previously submitted repeat.&lt;/P&gt;&lt;P&gt;I've looked around and came across this pretty &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/prevent-overwriting-existing-repeats/td-p/876558" target="_self"&gt;straightforward solution &lt;/A&gt;of adding&amp;nbsp;allowUpdates=false allowAdds=true to the bind::esri::parameters column of the repeat. I tried it out and previously submitted repeats are still editable. Have I missed something, or are there any other solutions or workaround that&amp;nbsp; might help achieve my goal?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 12:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1516629#M58386</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-08-08T12:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1516739#M58396</link>
      <description>&lt;P&gt;Did you add "query"&lt;SPAN class=""&gt;? &lt;STRONG&gt;query allowUpdates=false&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;However, note that the &lt;STRONG&gt;default&lt;/STRONG&gt; behaviour is &lt;STRONG&gt;allowUpdates=false, &lt;/STRONG&gt;so I don't think there is value in&amp;nbsp;specifically specifying it. Same deal with &lt;STRONG&gt;allowAdds&lt;/STRONG&gt;, which defaults to &lt;STRONG&gt;true&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 15:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1516739#M58396</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-08T15:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1516743#M58397</link>
      <description>&lt;P&gt;I did try that as well, yeah, though I suspect since there was no change that it's just that the bind::esri::parameter isn't honoring that syntax in the web form (which seems like based on &lt;A href="https://community.esri.com/t5/arcgis-survey123-ideas/disable-add-delete-of-repeats-on-web-form-editing/idi-p/1268437" target="_self"&gt;RobertAnderson's idea&lt;/A&gt;) Hopefully that gets fixed.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 15:36:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1516743#M58397</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-08-08T15:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1516752#M58398</link>
      <description>&lt;P&gt;Thanks for linking that idea! Voted.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 15:48:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1516752#M58398</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-08T15:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1516800#M58400</link>
      <description>&lt;P&gt;Is it important to view previous repetitions within the editing form? If not, &lt;STRONG&gt;you could filter the comments/repetitions table with a condition that will never be met&lt;/STRONG&gt; (e.g.: globalid='test'). This way, the layer will never return previously submitted records, but will allow new ones to be submitted. This way, your data is preserved and new entries can be added:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SMHRio_0-1723135034058.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111961i4E211425084E02E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SMHRio_0-1723135034058.png" alt="SMHRio_0-1723135034058.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I usually use this trick when I don't want my users to be able to view and edit records in the Web App.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 16:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1516800#M58400</guid>
      <dc:creator>SMH-Rio</dc:creator>
      <dc:date>2024-08-08T16:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518336#M58430</link>
      <description>&lt;P&gt;I like the thought, but how do you do this publishing from Survey123 Connect? Usually you can't publish with the GlobalID entered as a question line, correct?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 13:40:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518336#M58430</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-08-12T13:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518362#M58433</link>
      <description>&lt;P&gt;Try this approach: &lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-pull-the-objectid-of-features-collected-using-fi-000026981" target="_self"&gt;Pull the ObjectID of existing features into a Survey123 form&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 14:06:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518362#M58433</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-12T14:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518392#M58435</link>
      <description>&lt;P&gt;Okay, so closer (thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454586"&gt;@abureaux&lt;/a&gt;&amp;nbsp;!), but &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/695980"&gt;@SMH-Rio&lt;/a&gt;&amp;nbsp; where do you do the actual filtering? My first thought was the relevant column:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_0-1723472967758.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112144i00DF4F0F6F495708/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_0-1723472967758.png" alt="ZachBodenner_0-1723472967758.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;...but that just disappears the entire repeat section (good for not editing previous entries, bad for adding new ones)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 14:30:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518392#M58435</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-08-12T14:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518397#M58436</link>
      <description>&lt;P&gt;Have you tried using "date" yet?&lt;/P&gt;&lt;P&gt;Add a&amp;nbsp;dateTime field in the main survey body. Make&amp;nbsp;&lt;STRONG&gt;bind::esri:fieldType &lt;/STRONG&gt;= &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;null&lt;/STRONG&gt;&lt;/FONT&gt;, &lt;STRONG&gt;bind::esri:parameters&lt;/STRONG&gt; = &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;calculationMode=always&lt;/STRONG&gt;&lt;/FONT&gt;, &lt;FONT color="#3366FF"&gt;&lt;FONT color="#000000"&gt;and &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;appearance = &lt;FONT color="#3366FF"&gt;hidden&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;FONT color="#000000"&gt;Then add a dateTime question to the repeat. Make &lt;STRONG&gt;appearance&lt;/STRONG&gt; = &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;hidden&lt;/STRONG&gt; &lt;/FONT&gt;and &lt;STRONG&gt;default&lt;/STRONG&gt; = &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;now()&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Then you can use an IF() statement in the readonly parameter for the individual fields within the repeat. If the dateTime outside the repeat is greater than the repeat dateTime (maybe by 5-10 minutes?), readonly = yes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Or, similar approach. If you could feed a uuid into the survey, just make a new uuid every time the link is pressed, and the repeat is only editable when the uuid within the repeat matches the one outside.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 14:49:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518397#M58436</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-12T14:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518413#M58437</link>
      <description>&lt;P&gt;Fortunately I already had some date fields available to work with! So there's the DateCreated, which is automatically filled out with the current date when the initial request (SurveyA in my initial post) is made. Similar with the CommentDate, which is set to Now() when a new comment repeat is added.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_0-1723475487300.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112146i97B385152D383C43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_0-1723475487300.png" alt="ZachBodenner_0-1723475487300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I don't know if it's just my syntax, but I can't advance past the Survey123 Connect error I get when I try to save and update the form with that read-only parameter entry. Am I missing something with the setup you suggested? Bad IF statement writing?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 15:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518413#M58437</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-08-12T15:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518426#M58438</link>
      <description>&lt;P&gt;Likely just a syntax issue. I see two off-hand:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Contrary to how I always tend to reference them in text, IF() statements in S123 really don't like being capitalized. Change your "IF" to "if".&lt;/LI&gt;&lt;LI&gt;Your "yes" and "no" should be in quotes.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 12 Aug 2024 15:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518426#M58438</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-12T15:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518436#M58439</link>
      <description>&lt;P&gt;Aha yes, well that got past the error, but unfortunately it did result in a change in the form behavior. I also tested out stripping the repeat date out and just replacing it with now:&lt;/P&gt;&lt;P&gt;if(${DateCreated}&amp;gt;(now() + 0.0104166675),'yes','no')&lt;/P&gt;&lt;P&gt;but that didn't make a difference either. I was following&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528" target="_self"&gt; Ismael's blog&lt;/A&gt; about using dateTime comparison/calculation which is how I arrived at the + 0.0104 etc number as a test. So I figured I'd also get rid of that time add and just try it against now(). So here's my test form with three different readonly contingencies:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_0-1723477383050.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112154iD9A49E960F0B4445/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_0-1723477383050.png" alt="ZachBodenner_0-1723477383050.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And all of those fields remain editable&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 15:43:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518436#M58439</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-08-12T15:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518469#M58440</link>
      <description>&lt;P&gt;In my workflows, I only need users to not edit already submitted repetitions when they open the record in the Web App (there is no other relationship with form fields - I just need to simulate the 'allowUpdates=false' from the Field App).&lt;/P&gt;&lt;P&gt;In this case, I do the filter directly in the layer that receives the responses from Survey123 (I don't do anything in xlsxform). I used the globalId as an example (because I can publish surveys with the global and parent), but in reality, it could be any other column in the database: the condition just needs to never be met. In other cases, I've done 'objectid = 589237598723598327', for example. The trick is that the condition is not met, regardless of the column used in the filter.&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 16:54:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518469#M58440</guid>
      <dc:creator>SMH-Rio</dc:creator>
      <dc:date>2024-08-12T16:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518474#M58441</link>
      <description>&lt;P&gt;Ah yes okay that does make sense. As it stands now I need the records to be visible to internal staff, just not editable by&amp;nbsp;&lt;EM&gt;anyone&lt;/EM&gt; who accesses the web form, though I can think of some ways to work around that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 16:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518474#M58441</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-08-12T16:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518477#M58442</link>
      <description>&lt;P&gt;In this case, my first option would be to create different forms, pointing to different view layers (which would have different filters too). I don't know if it makes sense in your case.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 17:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518477#M58442</guid>
      <dc:creator>SMH-Rio</dc:creator>
      <dc:date>2024-08-12T17:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518501#M58444</link>
      <description>&lt;P&gt;I actually had already kind of done that for testing purposes, and this solution actually works really well. I'm going to mark it as a solution, though I'm still interested in chasing down the calculation route just for learning's sake.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 18:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518501#M58444</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-08-12T18:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Editing Previously Submitted Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518630#M58446</link>
      <description>&lt;P&gt;Had similar issue with repeat editing. Embed the Survey into Dashboard as embedded content(Web Form). Oddly I pointed the layer at the view of my survey hosted feature. Even when I made the form window view only and pointed at the view layers. Because I had&amp;nbsp;allowAdds=true allowUpdates=true query&amp;nbsp;&lt;STRONG&gt;parameters.&amp;nbsp;&lt;/STRONG&gt;It still creates additional or deletes repeat record(responses). Look into using the query functionality. Or what I did. Create a separate form windows. The first is mode=copy. The second mode= edit. Removed the field being edited from first window and only show it on the second. Here is the syntax to the first - ?mode=copy&amp;amp;globalId={field/globalid}&amp;amp;hide=field:date_historic,....leaveDialog&amp;amp;version=latest&lt;/P&gt;&lt;P&gt;To the second -&amp;nbsp;?mode=edit&amp;amp;globalId={field/globalid}&amp;amp;hide=field:communication,................,leaveDialog&amp;amp;version=latest.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 21:16:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/prevent-editing-previously-submitted-repeats/m-p/1518630#M58446</guid>
      <dc:creator>TrafficOpsGIS</dc:creator>
      <dc:date>2024-08-12T21:16:30Z</dc:date>
    </item>
  </channel>
</rss>

