Hi @Tiff-Maps
The Survey123 web app has limited support for editing repeats, and you are running into one of them. In short. The default behavior of the web app is such that it will display all related records and allow you to delete/add/update them according to the settings in your feature layer.
If you disable query capabilities by making the layer add-only, the repeat will fail to load. If you enable queries to let the repeat load, you could disable updates and deletes, but respondents could still look at other related records.
If using the Survey123 mobile app (Inbox), the above limitations do not exist, because you can control what related records are loaded (using a where filter) and even what permissions are set in the repeat (allowUpdates=false, for example). There are more details about this in the Repeats in the Inbox section of this blog. It does not seem like using the mobile app is an option in your case.
In short, I think that you have reached a limit. I am copying here my colleague @ZhifangWang in case he can think of any other options or make a correction.
As a workaround, I am thinking that you could have the popup launch a survey that ONLY works with the related record. That is, instead of loading a survey with a repeat, you load a survey that targets the repeat related table directly. You will need to pass the GlobalID field to populate the parentGlobalID field in the related record and open the survey in normal mode (not in edit mode). To do that you will need to:
- Create a survey from your original survey feature layer. This will automatically populate the submission url parameter in the XLSForm design settings worksheet so your new survey targets your original survey layer.
- Go into the survey worksheet and remove all questions that refer to the parent layer
- Take the name of your repeat and paste it into the Form ID column in the settings worksheet
- Remove the begin repeat and end repeat rows
- Add a new question that matches the name of the field in your related table that carries the parentGlobalId field. Set the question tyupe to Guid
- Publish
- Have your popup launch this new survey passing the parentGlobalId value
When your new survey is launched, all the respondent will see is a survey to add comments or new info into the record. Submit and go. No options to see anything other people added.
I hope this makes sense.