Survey123 Editing Data via Web - Delete Related Records

231
4
11-04-2020 01:22 PM
NikholaiO_Hara
Occasional Contributor

Hello,

I have an application setup where users can edit data using Survey123 through the browser by using mode=edit and plugging in the globalid. There will be instances where users will need to delete related data. In the editing form there is a minus button which once clicked gives the appearances of deleting the repeat. However, after submitting and refreshing, the repeat is still there with all its data. Is deleting related records not possible using Survey123 in the edit mode via internet browser?

Reply
0 Kudos
4 Replies
Ruth_JiatengXu
Esri Contributor

Hi Nikholai,

Deleting the related records is supported by Survey123 edit mode. Could you please double-check the "what can submitters do?" on the collaborate page? If you didn't allow the submitters to delete the records, then the edit mode will return the error msg. If you have already enabled delete records and still see this error, please let me know, I will help you investigate further.

Thanks,

Ruth

Reply
0 Kudos
NikholaiO_Hara
Occasional Contributor

Submitters have all capabilities. See below image. The edit mode page has always loaded, no error has ever been given. When the edit Survey123 loads, the repeat is populated with it data. The only button is the minus button shown in the attachment to the original post. Clicking the minus button appears to delete the related record in the edit form, but after submission and going back to the edit form, the repeat with the data still exists. If this isn't clear, I can record a video to show you.

Reply
0 Kudos
NikholaiO_Hara
Occasional Contributor

After some more testing, I have found that I could not delete a related record if it would leave the parent record without any child records. However, if there were more than one related record, I could delete them given I still have at least one child record left. If I tried to delete all related records, the deletions would not be saved.

Is this intentional? 

DezsoLovicsek
New Contributor III

@Ruth_JiatengXu I am experiencing the same behaviour as described above by @NikholaiO_Hara. Being able to delete all the related records in edit mode would be quite helpful for my organization's workflows.

Reply
0 Kudos